File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 23
23
imgLazy.lazyload();
24
24
imgLazy.on('load',function(){
25
25
var img = $(this);
26
+ if(img.hasClass( "loaded" )) return;
26
27
if(img.attr('src') == img.data('src')){img.addClass('loaded');}
27
28
else {img.lazyload();}
28
29
if($.equalheight) $.fn.equalheight();
29
30
});
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');
32
42
});
33
43
</script>]]>
34
44
</body_includes >
You can’t perform that action at this time.
0 commit comments