summaryrefslogtreecommitdiffstats
path: root/data/js/script.js
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-01-03 18:19:19 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-01-03 18:19:19 +0100
commit1bf36e3c13a534a94b38e9bce50589ea59a7aee6 (patch)
tree80f5817eb5ab7174dd569cfa566a172d132fe4e7 /data/js/script.js
parent08ab0a51e77e99f0318ebd198d9569679e4a24f8 (diff)
Lazyload thumbnails
Apparently there are users with >500 images and they view their thumbnail history on mobile phones. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'data/js/script.js')
-rw-r--r--data/js/script.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/js/script.js b/data/js/script.js
index 57a2b6021..ee8ba9e3c 100644
--- a/data/js/script.js
+++ b/data/js/script.js
@@ -264,5 +264,8 @@ function fixedEncodeURIComponent (str) {
}
setup_colorbox();
}
+ if ($("img.lazyload").length) {
+ $("img.lazyload").show().lazyload({treshold: 200});
+ }
});
})(jQuery);