Ticket #7445 (closed Bug: fixed)

Opened 6 years ago

Last modified 5 years ago

Fix the IE6 background cache problem

Reported by: limi Owned by: calvinhp
Priority: major Milestone: 3.3
Component: JavaScript Version:
Keywords: ie TuneUpJan9 newbie Cc:

Description

IE has a bug (or a feature, if you will ;) that makes it not cache background images. This affects performance quite significantly, as icons etc are loaded every time.

Fortunately, there is a fix available, you can make sure it caches background images by inserting the following Javascript:

document.execCommand("BackgroundImageCache", false, true)

I recommend that we add this to the standard Plone setup as soon as possible. Remember to add a try/catch around it if it fails. This bug is fixed in IE7, for the record.

Source:  http://erik.eae.net/archives/2007/02/26/13.13.48/

Attachments

diff1.txt Download (2.1 KB) - added by cwainwright 5 years ago.
diff2.txt Download (1.2 KB) - added by cwainwright 5 years ago.

Change History

comment:1 Changed 6 years ago by hannosch

  • Owner changed from fschulze to mj

comment:2 Changed 5 years ago by vincentfretin

  • Keywords ie added

comment:3 Changed 5 years ago by garbas

  • Keywords TuneUpNov14 added

comment:4 Changed 5 years ago by gabdavhp

  • Keywords TuneUpDec5 added; TuneUpNov14 removed

comment:5 Changed 5 years ago by mj

This should be easy enough to pick up by newcomers too; just add the line to ie5fixes.js (with appropriate comments), and make sure you merge this to the trunk as well. If you feel extra adventurous, rename the file in question to iefixes.js on the trunk..

comment:6 Changed 5 years ago by gabdavhp

  • Owner mj deleted

comment:7 Changed 5 years ago by gabdavhp

  • Keywords newbie added

comment:8 Changed 5 years ago by cwainwright

  • Owner set to cwainwright
  • Status changed from new to assigned

comment:9 Changed 5 years ago by gabriellehp

  • Keywords TuneUpJan9 added; TuneUpDec5 removed

comment:10 Changed 5 years ago by cwainwright

  • Status changed from assigned to new
  • Owner changed from cwainwright to calvinhp

Please add attached to the  3.2 branch

Changed 5 years ago by cwainwright

Changed 5 years ago by cwainwright

comment:11 Changed 5 years ago by calvinhp

  • Status changed from new to assigned

comment:12 Changed 5 years ago by calvinhp

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [24154]) put in workaround for IE6 background caching problem, fixes #7445

comment:13 Changed 5 years ago by hannosch

  • Milestone changed from 3.x to 3.3
Note: See TracTickets for help on using tickets.