Webunity | Gilles van den Hoven schrieb:
> This somehow improves the performance of IE6. Interesting object detection
>>> as well. Opinions on this method?
>>>
> Hi,
>
> This hack was allready posted to this list by me, and someone told us
> you could use jQuery's method of detecting MSIE before applying the hack,
>
> Something like this, in my base.js file.
> // Object initializatie
> $(document).ready(function() {
> // Fix background image caching problem
> if (jQuery.browser.msie) {
> try { document.execCommand("BackgroundImageCache", false, true);
> } catch(err) {}
> }
> });
>
> -- Gilles
The by far safest thing to use is Conditional Compilation. And that way
other browsers only get JavaScript comments...:
/[EMAIL PROTECTED]
document.execCommand("BackgroundImageCache", false, true);
@*/
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/