layzr.js icon indicating copy to clipboard operation
layzr.js copied to clipboard

Thoughts on adding support for native lazy loading?

Open JacobDB opened this issue 6 years ago • 2 comments
trafficstars

Some browsers now support a loading attribute on images and iframes. A recent article on Smashing details how lazy loading scripts can be modified to first check for native support for lazy loading before triggering JavaScript based solutions.

What are your thoughts on adding a parameter (something like prefer_native) that would check if native lazy loading is supported, and only run Layzr if it's not supported?

https://www.smashingmagazine.com/2019/05/hybrid-lazy-loading-progressive-migration-native/

JacobDB avatar May 06 '19 13:05 JacobDB

strange this old ticket is still open with no update from the author. i had plan to use the script that support native "lazy" loading attribute.

aryanrajseo avatar Apr 12 '23 06:04 aryanrajseo

I just ended up switching to lazysizes

JacobDB avatar Apr 12 '23 13:04 JacobDB