I noticed that with huge amounts of images (100 - 200), the scrollable is just unusable for an image gallery because it takes way too long to load every image before showing the big one. Is there a way to add lazy loading to it?
Lazy load images? Created Jun 2, 2010
This thread is solved
Views: 1191 Replies: 2 Last reply Sep 10, 2010
You must login first before you can use this feature
Reply to:
Lazy load images?, from
homeboy
I also think Lazy Loading would be a nice feature.
Did anybody implement that? Maybe with addItem(); ?
Did anybody implement that? Maybe with addItem(); ?
Reply to:
» Lazy load images?, from
qualle
My solution:
$("#scrollableRight").click(function(){
imgEnd++;
if (imgEnd < imgCount) {
$.post('http://mydomain.com...', {
imgPath: imgPath,
imgCounter: imgEnd,
}, function(data){
if (data) {
scrollable.addItem('<img src="' + data + '" /></div>');
}
});
}
});
