Skip to content
Polyfill for img lazy loading (Chrome ~75)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
dist
.babelrc
.gitignore
README.md
gulpfile.js
index.js
package-lock.json
package.json

README.md

LL Polyfill

This is a simple JS polyfill to allow using Chrome's new loading= attr on img elements.

Install

Install LL Polyfill with npm using

npm install img-lazy-loading-poly --save

and include in your JS.

Use

To enable lazy loading on an image, just add loading="lazy"... Then images will load dynamically as the user scrolls.

You can’t perform that action at this time.