Intersection Lazyload
Installation
npm install --save intersection-lazyload
Note: This library is based on the IntersectionObserver API, it's not yet widely supported.
Check the compatibility table and add a Polyfill to your needs!
Usage
Import the module in your application:
// From ES6 // From CJSconst lazyload = default; // From globalconst lazyload = IntersectionLazyloaddefault;
Then use it juste like that:
;
Run the test
npm test
Example
Check out the documentation.