DEV Community

netsi1964 πŸ™πŸ»
netsi1964 πŸ™πŸ»

Posted on

Lazy loading 1500 images using native IMG loading property

After seeing a tweet by Lea Verou https://twitter.com/LeaVerou/status/1248003483330129920 where she share excitement about native lazy loading landing in Firefox 75, I wanted to do a little POC about this subject of lazy loading using simply a property on say IMG tag.

Turned out I had to pull in a polyfill for it to work here in my Chrome on Mac (perhaps I am doing something wrong?).

I am greatfull for unsplash.com which provides some categorized images to add just a little more fun this demo/POC.

Top comments (0)