From 99bd50655a45c3a21e9452c1276cd426d1ad2b8f Mon Sep 17 00:00:00 2001
From: Brett Bieber <brett.bieber@gmail.com>
Date: Mon, 7 Oct 2013 16:36:12 -0500
Subject: [PATCH] Attempt to avoid flash of unstyled content

---
 current/index.shtml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/current/index.shtml b/current/index.shtml
index ccef798c..e5e216fc 100644
--- a/current/index.shtml
+++ b/current/index.shtml
@@ -78,7 +78,7 @@
                     <div class="snapshot grid3 first">
                         <!--#include virtual="top_resources.html" -->
                     </div>
-                    <div id="featuredSpotlight" class="grid9">
+                    <div id="featuredSpotlight" class="grid9" style="display:none;">
 	                    <div id="wdn_Carousel" class="flexslider">
 					        <ul class="slides">
 						        <li>
@@ -356,7 +356,6 @@
                     };
                 }
             );
-            WDN.jQuery('#featuredSpotlight').hide();
             // For the larger, student success story
             WDN.jQuery.getJSON('http://newsroom.unl.edu/announce/success/latest?format=json',
                 function(data) {
@@ -373,8 +372,10 @@
                     	$newstory.find('p').text(story.description);
                         WDN.jQuery('#wdn_Carousel ul').prepend($newstory);
                     }
-                    WDN.initializePlugin('carousel');
-                    WDN.jQuery('#featuredSpotlight').show();
+                    WDN.initializePlugin('carousel', null, function() {
+                    	WDN.jQuery('#featuredSpotlight').show();
+                    }, 'after');
+                    
                 }
                 
             );
-- 
GitLab