putting WxH back, but removing them via javascript after lazyloading finishes

This commit is contained in:
Travis Hegner
2015-06-29 15:42:57 -04:00
parent d39e66a14c
commit cd9287f23c
2 changed files with 5 additions and 8 deletions
+4 -6
View File
@@ -3,16 +3,14 @@ $(document).ready(function(){
$("img.lazy").lazyload({
effect: "fadeIn",
threshold: 300,
placeholder: "",
skip_invisible: false
}).removeClass("lazy");
placeholder: ""
}).removeClass("lazy").removeAttr('width').removeAttr('height');
$(document).ajaxStop(function() {
$("img.lazy").lazyload({
effect: "fadeIn",
threshold: 300,
placeholder: "",
skip_invisible: false
}).removeClass("lazy");
placeholder: ""
}).removeClass("lazy").removeAttr('width').removeAttr('height');
});
});