aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/indexController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-10-13 17:11:13 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-10-13 17:11:13 +0200
commit4bbe82ff01145f22f20eef90a612dbd588ae1689 (patch)
tree01b059d85df0216d39f5257226391eb5883d9910 /app/controllers/indexController.php
parent858825e49acfc4c484b379504125d0cf98122620 (diff)
Remplace main.phtml non-cachable par main.js cachable
Amélioration des performances en permettant la mise en cache de 10Ko de JavaScript et en évitant une requête HTTP à chaque action de l'utilisateur.
Diffstat (limited to 'app/controllers/indexController.php')
-rwxr-xr-xapp/controllers/indexController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php
index d1c615d6d..ce1a188e7 100755
--- a/app/controllers/indexController.php
+++ b/app/controllers/indexController.php
@@ -19,7 +19,7 @@ class indexController extends ActionController {
}
View::appendScript (Url::display ('/scripts/shortcut.js'));
- View::appendScript (Url::display (array ('c' => 'javascript', 'a' => 'main')));
+ View::appendScript (Url::display ('/scripts/main.js'));
View::appendScript (Url::display ('/scripts/endless_mode.js'));
if ($output == 'global') {