projects
/
zf2.biz
/
application_blanche.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f4956a
)
Add inlineScript() helper
author
Jurian Sluiman
<jurian@soflomo.com>
Sun, 29 Jul 2012 09:40:13 +0000
(11:40 +0200)
committer
Jurian Sluiman
<jurian@soflomo.com>
Sun, 29 Jul 2012 09:40:13 +0000
(11:40 +0200)
For faster DOM parsing it is recommended to place some scripts just above
the </body> tag. Rendering the inlineScript() helper here makes it possible
to inject files in both the <head> and at the end of the <body>
module/Application/view/layout/layout.phtml
patch
|
blob
|
history
diff --git
a/module/Application/view/layout/layout.phtml
b/module/Application/view/layout/layout.phtml
index
47812ed
..
86c887d
100644
(file)
--- a/
module/Application/view/layout/layout.phtml
+++ b/
module/Application/view/layout/layout.phtml
@@
-52,5
+52,6
@@
</div> <!-- /container -->
+ <?= $this->inlineScript()?>
</body>
</html>