/lazy-images

lazy load images

Primary LanguageJavaScriptMIT LicenseMIT

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.