4 ms·
On a semi-related note: Is there any chance in the future that browsers are going to support / implement lazy-loading of images themselves (i.e. based off what
by berkut 5y ago
On a semi-related note:
Is there any chance in the future that browsers are going to support / implement lazy-loading of images themselves (i.e. based off what's visible in the viewport). Currently you have to (as far as I'm aware anyway, but I'm only just getting re-acquainted with web-dev) use JS to do it (things like LazySizes), which adds complexity, and is even more complicated if you want to combine that with responsive images...
Or am I missing something that's possible already?
- benhoyt 5y agoYou can set the attribute loading="lazy" on an <img> tag and the browser will do it for you. Looks like Edge and Chrome and Firefox support it, but not Safari yet (https://caniuse.com/?search=loading https://caniuse.com/?search=loading).