From 4bbe82ff01145f22f20eef90a612dbd588ae1689 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 13 Oct 2013 17:11:13 +0200 Subject: Remplace main.phtml non-cachable par main.js cachable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- app/controllers/indexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') 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') { -- cgit v1.2.3