-
Notifications
You must be signed in to change notification settings - Fork 9
Lazy loading of images #1
Comments
The image lazy loading section is still very "handwavy" - we need to flesh out the use cases and see how they can be tackled with a mix of directives, default browser behavior and JS based overrides and APIs. But I'm glad there's demand :) |
It seems we're forced to hand ourselves contradictory design requirements:
Point 3 is easy. One way would be to accept that lazy-loading will only apply to new browsers and one would have to resist temptation to make it work for current/older browsers. Another way would be to accept we need to vary the HTML itself, perhaps based on an indicator in the request headers (other than User-Agent, of course). |
That hint has nothing to do with actual lazyloading. All it does in old IE is downgrade priority of the fetch. |
This is a form of lazy loading IMHO, even if I know most people define lazy loading by loading when (soon to be) in the viewport. |
Fair enough. Though imho that's more commonly known as "deferred loading". (Commonly implemented by starting the load of all images from a In deferred loading, one will observe that all images load eventually (albeit deprioritised). In lazy loading, a measurable outcome is that some images will never load (given the user's interaction with the viewport) and thus save absolute bandwidth. Although deferred loading might still save bandwidth depending on how long a user leaves a page open. |
@Krinkle @igrigorik ok I agree, there are 2 needs:
I think CPP should let us manage both separately, even if they overlap a little. |
See https://discourse.wicg.io/t/a-standard-way-to-lazy-load-images/1153/12. |
@igrigorik thanks for the link, this discourse thread is great! |
I see in this draft a section about lazy loading of images, which is really nice!
I know —thank you @hteumeuleu for this tweet— that IE11 and Edge already support a
lazyload
attribute, but they are alone and the draft spec has been abandonned, inviting us to look at resource hints… which don't seem to contain anything on this topic.So, thanks a lot for this, I hope it will come soon to every browser!
Ok, that's not really an issue… ;-)
The text was updated successfully, but these errors were encountered: