I'm using jquery isotope and infinite scroll and want to use an image preloader
The image preloader I'm using is this: Image preloader
$('.image').preloader({
loader: '/images_/icons/img_pre.gif',
fadeIn: 700,
delay : 200
});
It works perfectly on page one but then doesn't fire for the infinite scrolled items so I need to place this somewhere within the isotope callback, but where? Any ideas?
This is isotope callback code I use:
// call Isotope as a callback
function( newElements ) {
$container.isotope( 'insert', $( newElements ) );
$container.isotope({ filter: '*' });
}