Commit 97d597f4 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 453585: Load stylesheets before scripts for performance reasons

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent c0c7dc6c
...@@ -69,23 +69,6 @@ ...@@ -69,23 +69,6 @@
[% PROCESS 'global/setting-descs.none.tmpl' %] [% 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: [%# Set up the skin CSS cascade:
# 1. Standard Bugzilla stylesheet set (persistent) # 1. Standard Bugzilla stylesheet set (persistent)
# 2. Standard Bugzilla stylesheet set (selectable) # 2. Standard Bugzilla stylesheet set (selectable)
...@@ -205,6 +188,24 @@ ...@@ -205,6 +188,24 @@
type="text/css"> type="text/css">
<![endif]--> <![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 %] [%# this puts the live bookmark up on firefox for the Atom feed %]
[% IF atomlink %] [% IF atomlink %]
<link rel="alternate" <link rel="alternate"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment