Posted By

davebowker on 07/03/09


Tagged

css image flash ie6 flicker


Versions (?)

IE6 Image Flicker


 / Published in: CSS
 

  1. html {
  2. filter: expression(document.execCommand("BackgroundImageCache", false, true));
  3. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: paulgpetty on July 5, 2009

sligthly safer to use via javascript, and wrap in a try catch:

        try {
            document.execCommand('BackgroundImageCache', false, true);
        } catch(e) {}

... and with browser detection in jQuery:

    if ($.browser.msie && $.browser.version < 7) {
        try {
            document.execCommand('BackgroundImageCache', false, true);
        } catch(e) {}
    }

You need to login to post a comment.