@remindgmbh/lazyimages
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

REMIND - LazyImages

Lazy loading images.

Usage

Create image tag with theese parameters.

<img
    class="lazyImage"
    src=""
    srcset=""
    data-src="test-bild.png"
    data-srcset="test-srcset.png 768w, test-src.png"/>

Initialize lazy loading somewhere in your script.

import { initLazyLoad } from "@remindgmbh/lazyimages"

initLazyLoad()

Dependencies (1)

Dev Dependencies (10)

Package Sidebar

Install

npm i @remindgmbh/lazyimages

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

31 kB

Total Files

26

Last publish

Collaborators

  • remindtech