DOJO: Flashing of Unstyled Content (FOUC) in Dijit Components
When working with several Dijit components in the Dojo library (most notably BorderContainer), a user may experience components loading out of position and then flash into place after a moment. For visitors, this looks like a glitch in your website and is not what you want, especially if you are operating a commercial site with paying customers.
This problem is a well documented problem in Internet Explorer and is called Flashing of Unstyled Content (FOUC). Fixing this for DOJO was a little more tricky, however a relatively quick fix is available and results in a nifty improvement when all said and done. The trick is to disable the parsing onload and programatically initiate the parser later: djConfig="parseOnLoad: false".
I can’t take any credit for this code so you’ll have to visit Peter Higgins blog at SitePen for all the necessary steps for implementing this solution. The tutorial is easy to follow and shouldn’t take you much time to get it working for your site.