summaryrefslogtreecommitdiff
path: root/app/App_FrontController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/App_FrontController.php')
-rw-r--r--app/App_FrontController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/App_FrontController.php b/app/App_FrontController.php
index 483bae567..a8415169c 100644
--- a/app/App_FrontController.php
+++ b/app/App_FrontController.php
@@ -67,9 +67,9 @@ class App_FrontController extends FrontController {
if (login_is_conf ($this->conf)) {
View::appendScript ('https://login.persona.org/include.js');
}
- View::appendScript (Url::display ('/scripts/jquery.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/jquery.min.js')));
- if ($this->conf->lazyload () === 'yes' &&
- ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader')) {
+ $includeLazyLoad = $this->conf->lazyload () === 'yes' && ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader');
+ View::appendScript (Url::display ('/scripts/jquery.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/jquery.min.js')), false, !$includeLazyLoad, !$includeLazyLoad);
+ if ($includeLazyLoad) {
View::appendScript (Url::display ('/scripts/jquery.lazyload.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/jquery.lazyload.min.js')));
}
View::appendScript (Url::display ('/scripts/main.js?' . @filemtime(PUBLIC_PATH . '/scripts/main.js')));