
Matthew Crumley contributed nice patch to Lazy Load plugin which makes it work with containers. If you have a container which has a scrollbar.
#container {
height: 600px;
overflow: scroll;
}
Images which are not visible are not loaded until you scroll to them. Check demo page for horizontal and vertical scrolling.
To use new feature you can give the container as jQuery object.
$("img").lazyload({
placeholder : "img/grey.gif",
container: $("#container")
});
Mathew also patched a bug where IE was not always loading images. To upgrade download the latest source, minified or packed.
Tagged with: Javascript Jquery Lazy load