- Local time
- 00:46
- Joined
- Oct 5, 2019
- Messages
- 1,187
- Pronouns
- he/him

Browser-level image lazy-loading for the web
This post covers the loading attribute and how it can be used to control the loading of images.

Does anyone see a way for a polyfill? The only way I see is to parse user agent on server side and deliver different HTML!?
The problem I see is that JS lazy loading is based on attribute replacement but the browser one uses a regular IMG tag with an additional attribute - like script async/defer. It's what I wished for - but it will take years until it's supported in major browsers.