summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-16 22:18:04 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-16 22:18:04 -0800
commitb6c202d572a2abd5fdd0205bc4d0127d3291ec24 (patch)
tree81c2b2890ca6d58cb32f5bc4bf1cc0b677ec67c8 /modules/gallery/libraries/Theme_View.php
parent6e58fced201705d73f5e080f16f482ae0f15e333 (diff)
Swap the order of the CSS and JS for performance. Fixes #1540.
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r--modules/gallery/libraries/Theme_View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index 7a6bc1da..d22bb03a 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -284,8 +284,8 @@ class Theme_View_Core extends Gallery_View {
if ($function == "head") {
// Merge the theme CSS/JS at the end
$this->css = array_merge($this->css, $save_css);
- array_unshift($blocks, $this->combine_files($this->css, "css"));
array_unshift($blocks, $this->combine_files($this->scripts, "javascript"));
+ array_unshift($blocks, $this->combine_files($this->css, "css"));
}
if (Session::instance()->get("debug")) {