Permalink
Browse files

MINOR Moved loading screen above layout initialization to avoid FOUC …

…in LeftAndMain.js
  • Loading branch information...
chillu committed Apr 14, 2011
1 parent f2f6ecc commit dafb93fd77cb46ba7129d6445d9e42bf5d90492e
Showing with 6 additions and 6 deletions.
  1. +5 −5 admin/javascript/LeftAndMain.js
  2. +1 −1 admin/templates/LeftAndMain.ss
@@ -50,11 +50,6 @@
*/
onmatch: function() {
var self = this;
-
- // Remove loading screen
- $('.ss-loading-screen').hide();
- $('body').removeClass('loading');
- $(window).unbind('resize', positionLoadingSpinner);
// Initialize layouts, inner to outer
$('.cms-content').layout();
@@ -64,6 +59,11 @@
}
layout();
$(window).resize(layout);
+
+ // Remove loading screen
+ $('.ss-loading-screen').hide();
+ $('body').removeClass('loading');
+ $(window).unbind('resize', positionLoadingSpinner);
this._setupPinging();
@@ -9,7 +9,7 @@
<body class="loading $CSSClasses">
- $CMSLoadingScreen
+ <% include CMSLoadingScreen %>
<div class="cms-container {layout: {type: 'border'}}">

0 comments on commit dafb93f

Please sign in to comment.