Skip to content

Commit 4ff2db8

Browse files
committed
Update config.xml
1 parent a2ff663 commit 4ff2db8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

etc/config.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@
2929
else {img.lazyload();}
3030
if($.equalheight) $.fn.equalheight();
3131
});
32-
$('body').on('contentUpdated', function () {$(this).find("img.lazyload").not(".loaded").lazyload();});
32+
$('body').on('contentUpdated', function () {
33+
var lazy = $(this).find("img.lazyload").not(".loaded").lazyload();
34+
lazy.on('load',function(){
35+
var img = $(this);
36+
if(img.attr('src') == img.data('src')){img.addClass('loaded');}
37+
else {img.lazyload();}
38+
if($.equalheight) $.fn.equalheight();
39+
});
40+
});
3341
$('body').removeClass('loading_body');
3442
});
3543
</script>]]>

0 commit comments

Comments
 (0)