diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-01-03 18:19:19 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-01-03 18:19:19 +0100 |
commit | 1bf36e3c13a534a94b38e9bce50589ea59a7aee6 (patch) | |
tree | 80f5817eb5ab7174dd569cfa566a172d132fe4e7 /data/js/script.js | |
parent | 08ab0a51e77e99f0318ebd198d9569679e4a24f8 (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.js | 3 |
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); |