1.0.0 • Published 1 year ago

@remindgmbh/lazyimages v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago