Changes between Version 1 and Version 2 of Ticket #21019, comment 21
- Timestamp:
- 06/21/2012 03:33:42 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21019, comment 21
v1 v2 11 11 Another (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. 12 12 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 htmlis rendered without any images and then they start to appear here and there.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 screen is rendered without any images and then they start to appear here and there. 14 14 15 15 Did some quick tests and on slower networks that may be several seconds.