Native Lazyload + Polyfill
·
Adds native lazyloading to all images and embeds (Chrome) and adds a polyfill to make it work in all browsers.
Valoraciones
Versión
1.1.0
Instalaciones activas
20
Última actualización
Oct 11, 2019
Minimalistic lazyloading, loads images as they come into view. Adds native lazyloading to all images and embeds (Chrome) and adds a polyfill (1.07 KiB gzipped) to make it work in all browsers.
How it works technically (if you care)
- Adds
loading="lazy"to all<img>and<iframe>insidethe_contentand other areas. - Also wraps
<img>,<iframe>and the content of<pictures>in<noscript>. - Adds the loading-attribute-polyfill to do its magic in JavaScript.
Feedback/Help is very welcome.
