[wp-trac] [WordPress Trac] #36378: Srcset download 2 images with one request.

WordPress Trac noreply at wordpress.org
Wed Mar 30 22:10:12 UTC 2016


#36378: Srcset download 2 images with one request.
--------------------------+-----------------------------
 Reporter:  adam.radocz   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.4.2
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 In certain cases the srcset download the full size and the 768w version of
 the image in one request. It's a huge amount of waste of bandwidth.

 {{{
 <img class="aligncenter size-full wp-image-108" src="http://wp.dev/wp-
 content/uploads/2016/03/Big_Bear_Valley_California.jpg"
 alt="Big_Bear_Valley,_California" width="1920" height="1280"
 srcset="http://wp.dev/wp-content/uploads/2016/03
 /Big_Bear_Valley_California-300x200.jpg 300w, http://wp.dev/wp-
 content/uploads/2016/03/Big_Bear_Valley_California-768x512.jpg 768w,
 http://wp.dev/wp-content/uploads/2016/03/Big_Bear_Valley_California-
 1024x683.jpg 1024w, http://wp.dev/wp-content/uploads/2016/03
 /Big_Bear_Valley_California-1200x800.jpg 1200w, http://wp.dev/wp-
 content/uploads/2016/03/Big_Bear_Valley_California.jpg 1920w" sizes="(max-
 width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw,
 840px" />
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36378>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list