How to stop IE6 background flicker

Posted by mattr Thu, 29 Mar 2007 10:42:00 GMT

Screen Flicker Image

Update:

After an upgrade to Apache 2.2 (on Windows) this fix caused errors preventing Apache from starting. I have not had chance to investigate. USE AT YOUR OWN RISK

Whilst working on my latest project, a web portal for an e-learning environment, I was presented with the issue of screen flicker in IE6 for elements using CSS to specify a background image.

Whilst this may be annoying, irritating or just plain ugly to some. For others, particularily those with epilepsy, it could be potentially life threatening.

Being a strong believer in the web being for everyone I set out to fix this issue. A quick google brought up some promising results. Dean Edwards' blog provided me with all the information I required whilst providing some humour based light entertainment at the same time.

this is a browser problem not a server problem. Unfortunately the only way to fix it is by configuring your server.

Luckily I'm a Linux kind-a-guy so setting up Apache took no more than a couple of minutes, a quick reboot of the server and everything was sorted.

Dean also mentions in his blog that there's now a Javascript alternative. However, I tried this solution with out success.

So in summary, for those Apache users like me who want to prevent flickering in IE6 but can't be arsed to read the whole of this blog article.....

Either add to or uncomment the following line to your httpd.conf

LoadModule expires_module modules/mod_expires.so

Then, in either your httpd.conf or a relevant .htaccess file add the following:

  1. #this stops screen flicker in IE
  2. BrowserMatch "MSIE" brokenvary=1
  3. BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
  4. BrowserMatch "Opera" !brokenvary
  5. SetEnvIf brokenvary 1 force-no-vary
  6.  
  7. ExpiresActive On
  8. ExpiresDefault A18000
  9. ExpiresByType image/gif A2592000
  10. ExpiresByType image/jpeg A2592000
  11. ExpiresByType image/png A2592000

Restart Apache. Voila.

If you're stuck with IIS, check this out

Trackbacks

Use the following link to trackback from your own site:
http://www.matthewjrichards.co.uk/articles/trackback/6390

  1. xbox 360 From cheapxbox360
    visitors to cheapxbox360 find almost free deals on xbox 360 games and consoles . . .
  2. Free xBox 360 games From Free xBox 360 Console Information
    Searching for a free xbox 360 console...
  3. Download Game Mario Pc Star Super From Interesting Game Kid Yahoo
    Download Game Mario Pc Star Super Psp Video FormatsRent Game OnlineDownload Game Mario Pc Star Super Psp Video FormatsRent Game Onlineall kinds of a change systems, even for Sonys exciting psp PlayStation Portable. Results for dvd too psp domaindo...
Comments

Leave a response

Comments

Lucid Moon Solutions

Uploads from Matthew J Richards (flickr)

The Great Oak on Mud
Flags
Bog Off
DSC00320

Tags

art cartoon css dnb drumandbass drupal events finance howto javascript jquery lego life modules music news perciformes personal php ruby


XHTML/CSS/WAI