Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #21019, comment 21


Ignore:
Timestamp:
06/21/2012 03:33:42 PM (13 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21019, comment 21

    v1 v2  
    1111Another (big?) drawback of using JS is that replacing the images at DOM ready leaves the screen "imageless" for couple of seconds. What happens is the low-rez images start to load together with the html, at DOM ready all half-loaded low-rez images are replaced with the high-rez. That makes the browser send another set of requests for them before the requests for the low-rez images have completed. So now we have double the number of image requests.
    1212
    13 During that time the html is rendered and since the "src" for the low-rez images is already replaced, they aren't shown. What makes this look worse is that the html is rendered without any images and then they start to appear here and there.
     13During that time the html is rendered and since the "src" for the low-rez images is already replaced, they aren't shown. What makes this look worse is that the screen is rendered without any images and then they start to appear here and there.
    1414
    1515Did some quick tests and on slower networks that may be several seconds.