Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

img-lazy

tianwang809023MIT1.0.2

An image lazyload tool for web.

img-lazy, lazyload, lazy, image, img, web, js

readme

img-lazy

website: https://github.com/tianwang8090/img-lazy

An image lazyload tool for web.

install & use

install with npm or srcipt tag

npm i lazy-img -S or <script src="https://unpkg.com/img-lazy"></script>

use

<script src="https://unpkg.com/img-lazy"></script>

<!-- set the real img source value in 'data-src' -->
<img data-src="x.jpg">
// with import
import lazyImg from "img-lazy";

lazyImg();