Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dipcode-software/jquery-laziness

jQuery plugin to images lazy loading
https://github.com/dipcode-software/jquery-laziness

image-loader jquery jquery-plugin lazyload-images

Last synced: about 1 month ago
JSON representation

jQuery plugin to images lazy loading

Awesome Lists containing this project

README

        

laziness
========

jQuery plugin to images lazy loading.

Example:
--------
::

$(document).ready(function() {

$(document).laziness({
selector: 'img[data-src]', // image selector on selected container
attribute: 'data-src', // imagesrc html attribute
onload: null, // callback called on each image load
threshold: 200, // load images earlier, ex: 200px earlier
});

});