Forum Moderators: not2easy

Message Too Old, No Replies

flickering site when clicking a link in IE

         

miek

3:49 pm on Mar 22, 2007 (gmt 0)

10+ Year Member



Hi,

I am trying to solve an IE problem, and was hoping that anyone can help me with it.
On this site I am making (see <snip>), when I click a link in IE, there is a flickering before the new page is shown.
Does anyone have any suggestions?

Thanks,

Miek.

[edited by: Robin_reala at 10:52 pm (utc) on Mar. 22, 2007]
[edit reason] Removed URLs as per TOS #13 [webmasterworld.com] [/edit]

Setek

11:24 pm on Mar 22, 2007 (gmt 0)

10+ Year Member



It sounds like FOUC - Flash of Unstyled Content - which I believe happens when you have only one script being imported in the head, or only one linked stylesheet.

Some of the ways to fix a FOUC:

If it's because of the stylesheet
Add a stylesheet. Make it for printing, or aural narration, or simply a high-contrast alternate stylesheet. If linking (using

<link ... />
) doesn't work, try using
<style type="text/css" media="screen">@import url('style.css');</style>
and see.

If it's because of the script
Add an empty script element (i.e.

<script type="text/javascript"> </script>
- make sure there's a space in between) which I'm assured works, though have never tried myself. It feels too hacky, and I like to avoid hacks.

If this is your problem let us know, and whether this helped solve it :)