aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-01 08:14:37 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-01 08:14:37 +0000
commit1f489624debf9f0890d36c7579d6c0d36198e9e2 (patch)
tree42042fc308a9f8242c918d8c5ab736004dafcfdf /views/default
parent43d0988ac91e604fd0f2a752753ee2315072aaac (diff)
downloadelgg-1f489624debf9f0890d36c7579d6c0d36198e9e2.tar.gz
elgg-1f489624debf9f0890d36c7579d6c0d36198e9e2.tar.bz2
Puts css before js in the head, per website performance best practices
git-svn-id: http://code.elgg.org/elgg/trunk@7983 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/page/elements/html_begin.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/views/default/page/elements/html_begin.php b/views/default/page/elements/html_begin.php
index 29f7d893f..c4918205f 100644
--- a/views/default/page/elements/html_begin.php
+++ b/views/default/page/elements/html_begin.php
@@ -54,12 +54,6 @@ $release = get_version(true);
<link rel="SHORTCUT ICON" href="<?php echo elgg_get_site_url(); ?>_graphics/favicon.ico" />
<?php
-foreach ($js as $script) {
-?>
- <script type="text/javascript" src="<?php echo $script; ?>"></script>
-<?php
-}
-
foreach ($css as $link) {
?>
<link rel="stylesheet" href="<?php echo $link; ?>" type="text/css" />
@@ -77,6 +71,11 @@ $ie6_url = elgg_view_get_simplecache_url('css', 'ie6');
<link rel="stylesheet" type="text/css" href="<?php echo $ie6_url; ?>" />
<![endif]-->
<?php
+foreach ($js as $script) {
+?>
+ <script type="text/javascript" src="<?php echo $script; ?>"></script>
+<?php
+}
echo elgg_view('js/initialize_elgg');
echo $feedref;