lazy-images

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i lazy-images

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • okize