treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Prevent Background Image Flickering in IE

Last updated on:

try {
 document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
View Comments

Comments

  1. paul
    Permalink to comment#

    i really like this blog, keep making!!

  2. Leonard Michael

    Silly question perhaps, but how do you use/implement this?

    Example?

    • Permalink to comment#

      I believe you just put it in your head, like this:

      try {
      document.execCommand(“BackgroundImageCache”, false, true);
      } catch(err) {}

    • Permalink to comment#

      [script type="javascript"]
      try {
      document.execCommand(“BackgroundImageCache”, false, true);
      } catch(err) {}
      [/script]

      Sub in the real brackets in the code

  3. saverio

    graet

  4. sujji
    Permalink to comment#

    hi,
    i used the above code . but still i am facing image flickering. i have to place the names of the images in the place of BackgroundImageCache. please help me

Leave a Comment

Use markdown or basic HTML and be nice.