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