You can follow me on @twitter or @github and you may also like filtrify

Lazy Load

If you're paginating items containing images, Lazy Load can make the page load a lot faster.

Lazy Load is a jQuery plugin that delays loading of images until they are actually visible in the page. Visit project page to read the documentation and to download the last version.

Because 'new browsers load images even if you remove the src attribute with JavaScript. Now you must alter your html code. Put placeholder image into src attribute of your img tag. Real image url should be stored data-original attribute'.

Thanks to the callback function in jPages you can then trigger the lazy load of the images. Check how to in the following example.

Keep in mind that if the image takes too long to load you will see the lazyload default animation and not the jPages animation.

Fork me on GitHub