lazy-images
v1.0.2
Published
A lightweight javascript plugin for lazy-loading images
Downloads
3
Readme
lazy-images
A lightweight javascript plugin for lazy-loading images
Use
Install module:
npm install lazy-images
Require module:
var lazy = require('lazy-images')([IMAGE_SELECTOR]);
IMAGE_SELECTOR default is '.lazy'
Notes
In order for this module to work, images need to have their dimensional attributes defined either via img tag properties or css properties.