]> git.parisson.com Git - mezzo.git/commitdiff
Fix Lazyloading on mobile devices
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 24 Oct 2016 08:14:14 +0000 (10:14 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 24 Oct 2016 08:14:14 +0000 (10:14 +0200)
app/static/src/js/modules/lazyload-init.js

index 1867fde8cbecc43987c882773ee8bd8f58407941..b2ee77af267467d2a212ac32d2535681412f01f6 100644 (file)
@@ -12,7 +12,8 @@ LazyLoadInit.prototype.init = function() {
     var that = this;
 
     $("img.lazyload").lazyload({
-        effect : "fadeIn"
+        effect : "fadeIn",
+        container: $("main")
     });
 
 };