Author: | Adrianducuara |
---|---|
Views Total: | 394 views |
Official Page: | Go to website |
Last Update: | June 11, 2021 |
License: | MIT |
Preview:

Description:
A smart lazyload JavaScript library that supports dynamic image loading, which means that newly added images will not be downloaded until they are visible on the screen.
How to use it:
1. Import the lazy.js.
import { registerImage } from "./lazy.js";
2. Register new images as follows:
registerImage(newImage);