We've reached the end of our tether here trying to overcome a nasty and intermittent FOUC in Firefox 3.5.x+ for a new release we're working on.
We've tried:
- Disabling Javascript in FF
- Using Quirks mode rendering by removing the DOCTYPE
- Moving from
@import
for additional CSS to<link>
- Switching concatenation on and off
- Removing CSS files from the concat, one at a time
- Switching the local cache off in Firefox
- etc
Our previous release never exhibited any FOUC issues, so it's something we've done to this release. Changes we've made so far include:
- Using Base64 encoded images over Data URIs for all decorative imagery, served via CSS.
- Separating 'framework'-related CSS files from page-specific CSS and bundling them as two separate CSS files
To recreate the problem... use Firefox 3.5.x or 3.6.x, then:
- Head on over to: http://my.publisher-subdomain.env.yola.net/
- Login with username: '[email protected]' and password: 'stackoverflow'
- Once logged-in, you should be at http://my.publisher-subdomain.env.yola.net/sites/
- Click the Account link in the main nav.
- The Account page should load, and you should see a FOUC. If the FOUC does not occur, clear your cache and reload the page.
Your help would be greatly appreciated! :)
UPDATE:
The dev environment is still exhibiting the FOUC, but only if FireFox is running low on memory or has a lot of extensions installed. Latency and rendering speed definitely affect the visibility of this FOUC.