Skip to content
Images Lazy Load for jQuery
CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
src
.editorconfig
.gitignore
Gruntfile.js
README.md
package.json

README.md

jQuery Lazy Load Plugin

How to use

Call jQuery and jQuery Lazy Load plugin

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.lazyload.min.js"></script>

Call plugin function.

<script>
$(function() {
    $('img.lazy-load').lazyLoad();
});
</script>

Use data-src to your images

<img src="replace.png" data-src="http://andafter.org/media/blogs/eucompraria/shop/images/products/cortador-papel/cortador-papel4.jpg" class="lazy-load" />
You can’t perform that action at this time.