@campj/lazy-image

Camp Jefferson Lazy Image utility, in the vein of Gatsby Image

Usage no npm install needed!

<script type="module">
  import campjLazyImage from 'https://cdn.skypack.dev/@campj/lazy-image';
</script>

README

Lazy Image

Camp Jefferson Lazy Image utility, in the vein of Gatsby Image

Usage

Installation

npm install @campj/lazy-image --save-dev

Import into js file for client

import { LazyImage } from "@campj/lazy-image";

Initialize

LazyImage.init();

Re-run (dom elements changed)

LazyImage.run();