Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 1 KB


LazyLoad allows you to defer image loading until the user scrolls down to each image. Using LazyLoad can easily save you bandwidth and allow the page to load faster for the user. This plugin takes only a minute to implement so using LazyLoad is a must.


How to Use

LazyLoad should be initialized during the DOMReady event. There are no required arguments -- only options.

/* LazyLoad instance */
var lazyloader = new LazyLoad({
	range: 200,
	realSrcAttribute: "data-src",
	useFade: true,
	elements: 'img',
	container: window

<img src="" data-src="" />
<!-- or -->
<img data-src="" />

For specific usage and options, please read the documentation or visit