3 ms·
The doc states 2 reasons: - If the image is fits in 2kb (icons/ui elements) then they can just do a full decode and not have to lazy load these ui items as the
by zamadatix 8y ago
The doc states 2 reasons:
- If the image is fits in 2kb (icons/ui elements) then they can just do a full decode and not have to lazy load these ui items as the page scrolls.
- It allows them to load low resolution versions of progressive image formats rather than stick up a generic placeholder (marked as a future improvement right now).
- deleted 8y ago[deleted]
- ec109685 8y agoFor your first point, reading the specified dimensions from the page would be sufficient to tell the browser whether it's a small image to skip lazy loading.
- NeutronStar 8y agoThe image might be 2kx1k but dimensions specified can be 20x10px. Not a good practice but can occur.