Travis Smith: my resume, bio and photos back to the main blog page

Safari FOUC (Flash of Unstyled Content)

posted at 12:02 am
on Aug. 15, 2005

Comments: 7 so far

Permalink

 

Previous entry:
Big Day Out

Next entry:
Refinding My Voice

If you’re looking at this page in Safari 1.3 and perhaps 2.0, chances are you saw, while the page was loading, a poorly formatted page with black text.  Then, something finished loading and the page suddenly fell into place with nice white text and the proper layout.

That’s called the Flash of Unstyled Content (FOUC) and it’s a CSS display glitch.  I can’t find any way to stop it.

However, it’s a big Internet with lots of smart people in it.  if you have any solutions or ideas to try, please let me know.

Overheard

“The summer weather is expected to last well into next week.”

...who said it?

“Watch your step as you exit the train, and if you’re late, just remember that life is a lot like being on this train: we may not be there yet, but we’re getting there.”

...who said it?

“There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order.”

...who said it?

“Description: MySQL server has gone away”

...who said it?

“According to Golf Digest, from 1996 to 2007, Woods made $769,440,709. Golf Digest predicts that, by 2010, Woods will become the world’s first athlete to pass one billion dollars in earnings.”

...who said it?

Comments

 

 

http://www.bluerobot.com/web/css/fouc.asp

 

Posted by Brad Chmielewski  at  7:40 am on Nov. 6, 2005

 

 

 

I started getting the FOUC in Safari on OmniNerd, the site I design, once we added Google ads. Not sure why that would cause it (or if that's actually the cause), but I did notice that you have Google ads too.

Note: Many sites blame @import, but when I first added the ads and got the FOUC, I was using the old-school link tag.

 

Posted by Mark A. McBride  at  3:00 pm on Nov. 9, 2005

 

 

 

I have found a hack around this, I have the solution posted on my blog:

http://oe.sevenlight.com/entry/2006/04/19/Fix_to_Safari's_FOUC_AdSense_bug

 

Posted by Percy  at  9:52 am on Apr. 19, 2006

 

 

 

this is a terrible layout

 

Posted by tom  at  7:58 pm on May. 20, 2006

 

 

 

Yeah, this is a terrible layout.

Anyway, the Safari developers just fixed this problem in their latest builds. The fix will make it to the public eventually (hopefully soon).

 

Posted by Bill W.  at  7:58 am on Aug. 31, 2006

 

 

 

A site I'm developing has started having a FOUC, and I believe it's because I'm generating CSS with PHP (caching would probably help with this problem, but I didn't feel like dealing with that).

My solution, which may be in use elsewhere but I haven't seen it discussed, is...

In your CSS file:
body { visibility: visible !important; }

In your HTML:
<body style="visibility: hidden;">

This way, the CSS overrides your body's invisibility the moment the rendering has parsed your CSS.

 

Posted by Trevor  at  10:02 pm on Oct. 14, 2006

 

 

 

I think I've found a simple workaround: first CSS file just hides the body; last CSS file just shows the body. More info at http://jonaquino.blogspot.com/2007/02/workaround-for-safari-fouc-bug.html

 

Posted by Jonathan Aquino  at  11:42 pm on Feb. 24, 2007

Add a Comment

 

 

Name:


Email:


Location:


URL:


Submit the word you see below:


 

 

 

Your comment:


Remember my personal info


Email me about follow-ups


 

Syndication Links


Click here for the main
XML feed for this blog.



Column only



Side links only



Quotes only

 

I'm Listening To

2007/07/29 11:50

Zero 7
Garden State

MetaBlogs

AboutBlogs

Clients

Humor

Journalism

Los Angeles

Mac

News

Personal 1

Personal 2

Photos

Politics

Other A-F

Other G-Q

Other R-Z

SocialNetworking

Tech 1

Tech 2

Travel

Vancouver 1

Vancouver 2

Vancouver 3

Vancouver 4

BizBlogs

Back to Main

 

Powered by
Expression Engine

 

Copyright 1995 - 2005

 

 

Want Column?

Enter your email address:


It will NEVER be shared.
Unsubscribe

You can scroll right easily by holding down the SHIFT key and using your scroll wheel. (Firefox users trying this will end up jumping to old Web pages until a) Firefox releases a fix, b) they change their settings like so.)