1.0.2 • Published 9 years ago

lazy-images v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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.