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: 4 months ago
JSON representation
jQuery plugin to images lazy loading
- Host: GitHub
- URL: https://github.com/dipcode-software/jquery-laziness
- Owner: dipcode-software
- Created: 2014-11-28T11:03:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-28T15:16:28.000Z (over 11 years ago)
- Last Synced: 2025-03-13T11:27:16.879Z (about 1 year ago)
- Topics: image-loader, jquery, jquery-plugin, lazyload-images
- Language: JavaScript
- Homepage:
- Size: 172 KB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
});
});