Anyone have ideas for solving the “n items remaining” problem on Internet Explorer?

前端 未结 7 1447
灰色年华
灰色年华 2021-01-30 17:22

In my ASP.Net app, which is javascript and jQuery heavy, but also uses master pages and .Net Ajax pieces, I am consistently seeing on the status bar of IE 6 (and occasionally IE

7条回答
  •  死守一世寂寞
    2021-01-30 18:02

    This guy has a great writeup on IE6 caching problems, but the blog appears to be down.

    He boiled the problem into two parts:

    1. IE6 background-image flicker
    2. An IE bug/feature: Internet Explorer Cache Is Not Used When You Run innerHTML Code to Insert the Same Image Multiple Times. Microsoft suggests two very bad workarounds (and in my case, they didn't even work), but you can also workaround this by making sure you don't insert tags via innerHTML.

    The natural solution to problem #2 is to use background-image instead of tags; insidiously, this will force you right into problem #1; as a result, you may defeat problem #2, incorrectly believing you are making no progress.

    In my case, I solved both problems at once, when I replaced my innerHTML tags with

    tags that had background-image and used document.execCommand("BackgroundImageCache", false, true) to fix the flicker.

提交回复
热议问题