We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ff663 commit 4ff2db8Copy full SHA for 4ff2db8
etc/config.xml
@@ -29,7 +29,15 @@
29
else {img.lazyload();}
30
if($.equalheight) $.fn.equalheight();
31
});
32
- $('body').on('contentUpdated', function () {$(this).find("img.lazyload").not(".loaded").lazyload();});
+ $('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
41
$('body').removeClass('loading_body');
42
43
</script>]]>
0 commit comments