Re:The specification for native image lazy-loading is merged...
by stkdump on Thursday February 13, 2020 @02:36AM
(#22316007)
Forgive my ingorance, but wouldn't that mean that the browser has to load images in the correct order? So instead of delaying the load until the image is in view, just prioritize loading based on how far up/down the page an image is? If yes, couldn't the browser implement it without any additions to html?
[ Parent
| on HN ]
Re:The specification for native image lazy-loading is merged...
by ioulian on Thursday February 13, 2020 @03:45AM
(#22316262)
It's not that easy. It's not always that you scroll gradually to the bottom of the page. If you click the scrollbar to the bottom, then the middle images shouldn't load. The same if you use hash navigation to the bottom.
If you refresh the page at the bottom, it will stay at the bottom, so no need to load top images.