<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Matthew J Richards - Freelance Web Developer North Wales: How to stop IE6 background flicker</title>
    <link>http://www.matthewjrichards.co.uk/articles/2007/03/29/how-to-stop-ie6-background-flicker</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Freelance web developer and designer</description>
    <item>
      <title>How to stop IE6 background flicker</title>
      <description>&lt;p&gt;&lt;img src="http://www.matthewjrichards.co.uk/files/screen_flicker.jpg" alt="Screen Flicker Image" /&gt;&lt;/p&gt;
&lt;div class="update"&gt;
&lt;h4&gt;Update:&lt;/h4&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;Whilst working on my latest project, &lt;a href='http://www.thelearningbusiness.com'&gt;a web portal for an e-learning environment&lt;/a&gt;, I was presented with the issue of screen flicker in IE6 for elements using CSS to specify a background image.&lt;/p&gt;

&lt;p&gt;Whilst this may be annoying, irritating or just plain ugly to some.  For others, particularily those with epilepsy, it could be potentially life threatening.  &lt;/p&gt;

&lt;p&gt;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. &lt;a href="http://dean.edwards.name/my/flicker.html"&gt;Dean Edwards' blog&lt;/a&gt; provided me with all the information I required whilst providing some humour based light entertainment at the same time.&lt;/p&gt;

&lt;blockquote cite="http://dean.edwards.name/my/flicker.html"&gt;this is a browser problem not a server problem. Unfortunately the only way to fix it is by configuring your server.&lt;/blockquote&gt;&lt;br /&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Dean also mentions in his blog that there's now a &lt;a href="http://www.mister-pixel.com/#Content__state=is_that_simple"&gt;Javascript alternative&lt;/a&gt;.  However, I tried this solution with out success.  &lt;/p&gt;

&lt;p&gt;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.....&lt;/p&gt;

&lt;p&gt;Either add to or uncomment the following line to your httpd.conf&lt;/p&gt;

&lt;code&gt;
LoadModule expires_module modules/mod_expires.so
&lt;/code&gt;

&lt;p&gt;Then, in either your httpd.conf or a relevant .htaccess file add the following:&lt;/p&gt;


&lt;ol class="codeblock"&gt;
&lt;li&gt;#this stops screen flicker in IE&lt;/li&gt;
&lt;li&gt;BrowserMatch "MSIE" brokenvary=1&lt;/li&gt;
&lt;li&gt;BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1&lt;/li&gt;
&lt;li&gt;BrowserMatch "Opera" !brokenvary&lt;/li&gt;
&lt;li&gt;SetEnvIf brokenvary 1 force-no-vary&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;ExpiresActive On&lt;/li&gt;
&lt;li&gt;ExpiresDefault A18000&lt;/li&gt;
&lt;li&gt;ExpiresByType image/gif A2592000&lt;/li&gt;
&lt;li&gt;ExpiresByType image/jpeg A2592000&lt;/li&gt;
&lt;li&gt;ExpiresByType image/png A2592000&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;Restart Apache.   Voila.&lt;/p&gt;

&lt;p&gt;If you're stuck with IIS, &lt;a href="http://www.aspnetresources.com/blog/cache_control_extensions.aspx"&gt;check this out&lt;/a&gt;&lt;/p&gt;




</description>
      <pubDate>Thu, 29 Mar 2007 10:42:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:a542dd8d-f2bb-4dba-9f35-1522aaaf55ba</guid>
      <author>mattr</author>
      <link>http://www.matthewjrichards.co.uk/articles/2007/03/29/how-to-stop-ie6-background-flicker</link>
      <category>ie6</category>
      <category>flicker</category>
      <category>accessibility</category>
      <category>css</category>
      <category>howto</category>
      <enclosure type="image/jpeg" length="34481" url="http://www.matthewjrichards.co.uk/files/escherlego.jpg"/>
      <trackback:ping>http://www.matthewjrichards.co.uk/articles/trackback/6390</trackback:ping>
    </item>
  </channel>
</rss>
