summaryrefslogtreecommitdiff
path: root/app/layout/layout.phtml
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/layout/layout.phtml
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/layout/layout.phtml')
-rw-r--r--app/layout/layout.phtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml
index 331570873..7f389463e 100644
--- a/app/layout/layout.phtml
+++ b/app/layout/layout.phtml
@@ -8,6 +8,9 @@
<?php echo self::headTitle (); ?>
<?php echo self::headStyle (); ?>
+ <script>//<![CDATA[
+<?php $this->renderHelper ('../javascript/main'); ?>
+ //]]></script>
<?php echo self::headScript (); ?>
</head>
<body>