You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

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

homeboy

Posts: 5

Registered:
Apr 16, 2010

Lazy load images?

Posted: Jun 2, 2010

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?

qualle

Posts: 10

Registered:
Feb 20, 2010

» Lazy load images?

Posted: Aug 27, 2010

Reply to: Lazy load images?, from homeboy
I also think Lazy Loading would be a nice feature.
Did anybody implement that? Maybe with addItem(); ?

qualle

Posts: 10

Registered:
Feb 20, 2010

» » Lazy load images?

Posted: Sep 10, 2010

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>');
				}
			});
		}
	});