Double Lazy Load for videos, images and background images. Sourced with Typescript.
Demo
Right here. Also provides some tips on how to use.
npm
`` npm install @thednp/dll
`
Base syntax
`js
import DLL from '@thednp/dll';
DLL('selector',callback);
`
What it does
* Integrates nicelly into your projects and provides build tools
* Do lazy loading for an element that is subject to lazy load via data-src, or
* Do to all child items of a given element
* Do backgroundImage to elements other than <img> if they have data-src attribute.
* Do callback when load event is triggered for one element, or for the last child element of a given parent.
* Do lazy loading for