Skip to content

Commit 975fa19

Browse files
committed
Update config.xml
1 parent 5ae78ac commit 975fa19

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

etc/config.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,22 @@
2323
imgLazy.lazyload();
2424
imgLazy.on('load',function(){
2525
var img = $(this);
26+
if(img.hasClass( "loaded" )) return;
2627
if(img.attr('src') == img.data('src')){img.addClass('loaded');}
2728
else {img.lazyload();}
2829
if($.equalheight) $.fn.equalheight();
2930
});
30-
if($.equalheight) $.fn.equalheight();});
31-
$('body').on('contentUpdated', function () {$(this).find("img.lazyload").not(".loaded").lazyload();});
31+
$('body').on('contentUpdated', function () {
32+
var lazy = $(this).find("img.lazyload").not(".loaded").lazyload();
33+
lazy.on('load',function(){
34+
var img = $(this);
35+
if(img.hasClass( "loaded" )) return;
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');
3242
});
3343
</script>]]>
3444
</body_includes>

0 commit comments

Comments
 (0)