Fixing image caching and lack of PNG support in IE6 August 27, 2010
This is more of a reminder for myself than anything else, but it may help others.
How To Solve Flickering Background Images
If you’re using CSS sprites as background images for links or buttons, you’ll notice that the image will flicker briefly in Internet Explorer 6. The reason is because IE6 doesn’t properly cache the background image and reloads it every time. You can fix this with a single line of JavaScript that forces IE6 to cache the image.
- <!–[if lte IE 6]>
- <link type=”text/css” rel=”stylesheet” href=”css/ie6.css” />
- <script type=”text/javascript”> document.execCommand(“BackgroundImageCache”,false,true); </script>
- <![endif]–>
Source: virtuosimedia.com and Adobe.com
PNG-Transparency for Windows IE 5.5 & 6
This is a JQuery script that fixes missing PNG-Transparency support in Windows Internet Explorer 5.5 & 6 without corrupting other functionality.
Source: andreaseberhard.de
Leave a Reply