RE: image lazy load

Hi Laura! 

The best place to file your request for subsequent technical discussion is going to be here: https://github.com/whatwg/html/issues


You may want to check out this specific issue, as it looks like a duplicate of the idea you propose below:

https://github.com/whatwg/html/issues/2806


Thanks! HTH.

-----Original Message-----
From: Laura Morales <lauretas@mail.com> 
Sent: Friday, June 22, 2018 6:02 AM
To: public-html@w3.org
Subject: image lazy load

I don't know if this is the right mailing list, but I'd like to suggest a feature for image tags and background images: lazy load. More or less something like this:

- if the obect is not visible: do not load the resource (image)
- if the object is visible: load the resource (image)
- optional: if the resource has been loaded but the object is no longer visible, delete image (free some memory)

This would be very useful when there are a lot of images on the page. My particular use case is that I'm converting PDFs to HTML, which results in 100s or 1000s of requests. Lazy loading of images would instead display an image from the document when it's visible.
JavaScript can do this, but it would be better to have some HTML property that doesn't depend on JavaScript, for example <img src="" lazy=true />

Received on Tuesday, 26 June 2018 20:14:58 UTC