summaryrefslogtreecommitdiff
path: root/app/views/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/javascript')
-rw-r--r--app/views/javascript/main.phtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
index 443f62c31..9596b1647 100644
--- a/app/views/javascript/main.phtml
+++ b/app/views/javascript/main.phtml
@@ -125,8 +125,9 @@ function init_posts () {
<?php } ?>
init_img ();
- // TODO rendre optionnel
+ <?php if($this->conf->lazyload() == 'yes') { ?>
$(".flux .content img").lazyload();
+ <?php } ?>
if (hide_posts) {
$(".flux:not(.active) .flux_content").hide ();