W3C home > Mailing lists > Public > public-html@w3.org > June 2018

RE: image lazy load

From: Travis Leithead <travis.leithead@microsoft.com>
Date: Tue, 26 Jun 2018 20:14:12 +0000
To: Laura Morales <lauretas@mail.com>, "public-html@w3.org" <public-html@w3.org>
Message-ID: <MW2PR2101MB1003DD5AD9243D6E4F66D893F8490@MW2PR2101MB1003.namprd21.prod.outlook.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 26 June 2018 20:14:59 UTC