From cd9287f23c4a152c603500dbd89bc6d4de57f478 Mon Sep 17 00:00:00 2001 From: Travis Hegner Date: Mon, 29 Jun 2015 15:42:57 -0400 Subject: [PATCH] putting WxH back, but removing them via javascript after lazyloading finishes --- html/includes/functions.inc.php | 3 +-- html/js/lazyload.js | 10 ++++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 1f6d4aaa2..72596ac35 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -353,8 +353,7 @@ function generate_graph_tag($args) $urlargs[] = $key."=".urlencode($arg); } - //return ''; - return ''; + return ''; } function generate_graph_js_state($args) { diff --git a/html/js/lazyload.js b/html/js/lazyload.js index 3fed53442..066cd570d 100644 --- a/html/js/lazyload.js +++ b/html/js/lazyload.js @@ -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'); }); }); \ No newline at end of file