summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-09-06 06:16:40 +0200
committermkanat%bugzilla.org <>2008-09-06 06:16:40 +0200
commit97d597f4989bb83535f1e241de5b4521cbc2f551 (patch)
tree4043f50e9cb52de1a102f2359e8d9c1c204ffc88 /template/en/default/global
parentc0c7dc6cc00de40bcdb31225ed6cb10110259425 (diff)
downloadbugzilla-97d597f4989bb83535f1e241de5b4521cbc2f551.tar.gz
bugzilla-97d597f4989bb83535f1e241de5b4521cbc2f551.tar.xz
Bug 453585: Load stylesheets before scripts for performance reasons
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/header.html.tmpl35
1 files changed, 18 insertions, 17 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 663214aba..95cda45d0 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -69,23 +69,6 @@
[% PROCESS 'global/setting-descs.none.tmpl' %]
- [% IF javascript %]
- <script type="text/javascript">
- [% javascript %]
- </script>
- [% END %]
-
- [% IF javascript_urls %]
- [% FOREACH javascript_url = javascript_urls %]
- <script src="[% javascript_url FILTER html %]" type="text/javascript"></script>
- [% END %]
- [% IF javascript_urls.grep('yui/').size %]
- <script type="text/javascript">
- YAHOO.namespace('bugzilla');
- </script>
- [% END %]
- [% END %]
-
[%# Set up the skin CSS cascade:
# 1. Standard Bugzilla stylesheet set (persistent)
# 2. Standard Bugzilla stylesheet set (selectable)
@@ -205,6 +188,24 @@
type="text/css">
<![endif]-->
+
+ [% IF javascript %]
+ <script type="text/javascript">
+ [% javascript %]
+ </script>
+ [% END %]
+
+ [% IF javascript_urls %]
+ [% FOREACH javascript_url = javascript_urls %]
+ <script src="[% javascript_url FILTER html %]" type="text/javascript"></script>
+ [% END %]
+ [% IF javascript_urls.grep('yui/').size %]
+ <script type="text/javascript">
+ YAHOO.namespace('bugzilla');
+ </script>
+ [% END %]
+ [% END %]
+
[%# this puts the live bookmark up on firefox for the Atom feed %]
[% IF atomlink %]
<link rel="alternate"