I use lazyload() on my ecommerce website. lazyload() works great. I use this code to do that:
$(function(){
$(\"img.lazy\").lazyload({
effect : \"fadeIn
NOTE: At the time this answer was accepted, this worked. The lazy loading plugin changed and now it is broken. I cannot unaccept the answer nor can I delete it.
There is another Q&A that suggests handling it as part of the AJAX request responsible for inserting the additional DOM:
Binding image lazy loading to new images inserted after ajax request
However, this is how I would do it:
$(document).on('DOMNodeInserted', 'img.lazy', function() {
$(this).lazyload({
effect: 'fadeIn'
});
});
Demo: jsfiddle