@deckdeckgo/lazy-img

A dead simple Web Component to lazy load images

Usage no npm install needed!

<script type="module">
  import deckdeckgoLazyImg from 'https://cdn.skypack.dev/@deckdeckgo/lazy-img';
</script>

README

npm license

DeckDeckGo - A dead simple Web Component to lazy load images

This Web Component is a dead simple component to lazy load images which was developed for the project DeckDeckGo.

It leverages the IntersectionObserver API to lazy load images and also allows you to trigger "manually" their loading.

Table of contents

Getting Started

To get started with this Web Component, have a look to its documentation.

License

MIT © David Dal Busco and Nicolas Mattia