A Single Article
Read it, comment, and share it with your friendsSafari FOUC [not] Defeated
Apparently I managed to kill the Safari FOUC (Flash of Unstyled Content) on Liquid Designs.
Correction: I did not squash the Safari FOUC. Turns out it’s due to Google Adsense. Well, I’ll probably be getting rid of that soon, so I guess that’s the fix. If there is another way to prevent it, I’d like to know!
Get a Trackback link
13 Comments
Responses to my articleNope, not squashed. It’s caused by Google AdSense, although I’m not sure why. I’ve observed the same FOUC effect on a number of sites, including my own and 456bereastreet.com
Thanks for letting me know! I figured that didn’t solve the problem, but I didn’t have anyone to test it.
If you find the solution, let me know!
Rumor has it the latest Safari update to v2.0.2 (416.12) has solved this bug. I haven’t yet tested, but sounds promising!
I guess it has to do with @import stylesheets.
But there are many variations too.
possible workaround use media=all and linked stylesheets
did not help either except putting css first and then any js external scripts
that did help
Actually I don’t think that fixes it either. Clear the cache before testing to see.
Actually I don’t think that fixes it either. Clear the cache before testing to see.
I tested with always cache cleared before reloading the page
I found when JS is disabled all loads better.
The linked stylesheet does not affect the FOUC , media settings for the styles either nor using style tags. It seems the only way is to implement a time delay to check the styles are ready (but how) This would require JS?DOM?
First my pages suffered and now not anymore.
<meta http-equiv="imagetoolbar" content="no" /><style type="text/css" media="all">
@import "/styles/page.css"
@import "/styles/styled.css"
</style>
<!–[if IE]>
<link rel="stylesheet" href="/styles/ie_win.css" type="text/css" media="screen" />
<![endif]–>
<script type="text/javascript" src="/inc/addEvent.js"></script>
Can you show me an example page where this has been fixed?
>Can you show me an example page where this has been fixed?
Get my e-mail with coding example?
Yeah, sorry I didn’t respond, I got it. Apparently the issue is solved, I’m still testing though. Thanks.
I have found a hack to this problem:
http://oe.sevenlight.com/entry/2006/04/19/Fix_to_Safari’s_FOUC_AdSense_bug
Thanks Percy, that looks pretty good.
Leave a comment
Share your thoughts with the worldYou can use Markdown, or you can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>Please keep comments respectful and on topic.
This form is guarded by Akismet, so don't waste your time trying to submit spam. It won't work. Ever.