From ee1c51a7b50ae0e842376455a6d39db1c25940e0 Mon Sep 17 00:00:00 2001 From: Travis Hegner Date: Mon, 29 Jun 2015 14:28:31 -0400 Subject: [PATCH] cleanup and add 200px threshold --- html/js/lazyload.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/html/js/lazyload.js b/html/js/lazyload.js index c6c0d4b3a..5f2b4d432 100644 --- a/html/js/lazyload.js +++ b/html/js/lazyload.js @@ -1,21 +1,15 @@ $(document).ready(function(){ $("img.lazy").lazyload({ - effect: "fadeIn" + effect: "fadeIn", + threshold: 200 }).removeClass("lazy"); $(document).ajaxStop(function() { $("img.lazy").lazyload({ - effect: "fadeIn" + effect: "fadeIn", + threshold: 200 }).removeClass("lazy"); }); -}); - -function get_overlib(content) { - var ret = overlib(content, WRAP,HAUTO,VAUTO); - - jQuery.event.trigger("ajaxStop"); - - return ret; -} \ No newline at end of file +}); \ No newline at end of file