jQuery LazyImage Plugin – Lazy Load

jQuery LazyImage Plugin - Lazy Load

A simple and lightweight plugin to lazily load images.

Usage

Include the plugin after the jQuery library.

<script type="text/javascript" src="/path/to/jquery-lazyimage.js"></script>

Set up your images.

<img class="lazy-image" data-src="/path/to/image" />
<img class="lazy-image" data-src="/path/to/image" />
<img class="lazy-image" data-src="/path/to/image" />
...

Initialise the plugin.

$('.lazy-image').lazyImage();

Demo | Download

Leave a Reply

Your email address will not be published. Required fields are marked *