Issue Details (XML | Word | Printable)

Key: BUILDER-93
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Hardiker
Reporter: Guy Fraser
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Builder

Cache menu styles in MSIE 5.5 and above

Created: 14/Mar/06 11:26 PM   Updated: 23/Mar/06 04:04 PM
Component/s: Theme
Affects Version/s: 1.5.2
Fix Version/s: 1.5.3

Time Tracking:
Not Specified


 Description  « Hide
To quote from the hMenu documentation:

"Please note that Microsoft itself recommends preloading. As you can see at the Microsoft website, this bug only happens in IE 5.5 or later (it wasn't there in 5.0) and it is not a bug but, instead, it's something done "by design" (this means "intentional", right?) by the IE team. Microsoft will not fix the cache bug; the cache bug does not exist. Instead, you are expected to fix your stuff, and the recommended way is preloading the images. Thank you Microsoft for making things so much easier for you."

hMenu provides a function to automatically cache the images from the style sheet in the standard themes - to use it, the following must be added to the bottom of the page, just above the </body> tag:

DynarchMenu.preloadImages(new RegExp("^/hmenu/"));

It will need to be wrapped in something to ensure it only gets called on MSIE 5.5 or above (all other browsers don't suffer this bug so no need to preload and cache images for them).



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guy Fraser added a comment - 14/Mar/06 11:32 PM
Note that this will only show it's true benefit once the resource servlet starts allowing files to be cached, however it will result in some minor speed improvements within the current framework.

Dan Hardiker added a comment - 23/Mar/06 04:04 PM
<!--[if gte IE 5.5000]>
<script language="JavaScript">
DynarchMenu.preloadImages(new RegExp("^/hmenu/"));
</script>
<![endif]-->