- Add this js script to your main js file
- Add
loading="lazy"
to your images and iframes - Change the
src
andsrcset
attributes todata-src
anddata-srcset
- enjoy!
Lazy Loading Script That Will Help You With page Speed Performance.
loading="lazy"
to your images and iframessrc
and srcset
attributes to data-src
and data-srcset
Lazy Loading Script That Will Help You With page Speed Performance.
MIT License