1.0.0 • Published 3 years ago

@remindgmbh/lazyimages v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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()
1.0.0

3 years ago