Skip to content

A free, self-hostable news aggregator…

Merge pull request #224 from Alkarex/manualLazyload

Alexandre Alapetitefb07117b78bb
diff --cc app/App_FrontController.php
index 411550b38,314e92ebc..2db2d8ac1
--- a/app/App_FrontController.php
+++ b/app/App_FrontController.php
@@@ -62,9 -62,10 +62,9 @@@ class App_FrontController extends Front
View::appendScript ('https://login.persona.org/include.js');
}
View::appendScript (Url::display ('/scripts/jquery.min.js'));
- if ($this->conf->lazyload () === 'yes') {
+ if ($this->conf->lazyload () === 'yes' && ($this->conf->displayPosts () === 'yes' || Request::param ('output') === 'reader')) {
View::appendScript (Url::display ('/scripts/jquery.lazyload.min.js'));
}
- View::appendScript (Url::display ('/scripts/notification.js'));
}
private function loadNotifications () {