[dev] javascript.php patch

Jan Schneider jan at horde.org
Tue Oct 21 23:15:34 PDT 2003


Zitat von Jason Rust <jrust at rustyparts.com>:

> > After more poking around it turns out I was chasing the wrong problem
> > (sort of).  The page only hangs when there are lots of
> > images to be loaded (like the month view of konqueror when there are
> > several events in the month).  The page stops hanging when icons are
> > disabled or (and I can't figure out why this also fixes it) when
> javascript
> > sessions are turned off.  Not sure if there's any nice fix other than
> > just disabling icons for IE mac users using a pref hook.
>
> s/konqueror/kronolith/
>
> Here's a hook that works for us for anyone that's interested:
> // IE mac hangs when there are several icons to be loaded
> function _prefs_hook_show_icons()
> {
>     $browser =& Browser::singleton();
>     if ($browser->getPlatform() == 'mac' && $browser->getBrowser() ==
> 'msie') {
>         return false;
>     }
>     else {
>         return true;
>     }
> }

I added this as an example to hooks.php.dist, it might be useful for others
too (though I'm still not convinced that this browser is really *that*
buggy).

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list