I made a very simple plugin to disable JS in IE6 and below, performance is
subsecond now in IE :)
Put it ahead of other plugins in config.php that have JS you want to run in
IE6 (eg PiWik).
Thanks for the help debugging.
class disableJSie extends Plugin
{
var $isIE;
function __construct()
{
parent::__construct();
$this->isIE = strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE');
}
function onStartShowScripts($action)
{
if ( $this->isIE )
{
$action->raw('<!--[if gt IE 6]>');
}
}
function onEndShowScripts($action)
{
if ( $this->isIE )
{
$action->raw('<![endif]-->');
}
}
}
-Eric Helgeson
On Mon, Apr 6, 2009 at 5:03 PM, Eric <[email protected]> wrote:
> Thanks for the update.
>
> How would I go about disabling JS on IE6 only for now?
>
> -Eric Helgeson
>
>
>
> On Mon, Apr 6, 2009 at 4:07 PM, Sarven Capadisli <
> [email protected]> wrote:
>
>> On Mon, 2009-04-06 at 14:51 -0500, Eric wrote:
>> > Since i'm so limited in debugging I just noticed that while logged out
>> > the pages load in ~2 seconds in IE6. Apposed to ~7 seconds while
>> > logged in. I'm assuming there is a lot more js going on while you are
>> > logged in. (FF difference logged on/off is .3 of a second)
>>
>> I presume that the events that's applied to each notice item and its
>> actions is choking IE6 a bit.
>>
>> I'm refactoring a good portion of util.js and dropping the ajaxForm
>> jQuery plugin for the 0.8 release. I can revisit performance issues in
>> IE6 after that.
>>
>> I haven't investigated this yet, but, IE6 may not like xbimportNode.js
>> (which I would love to get rid of soon).
>>
>> Also consider the number of GETs being made (e.g., user avatars) at a
>> time in any given page. I'm not sure if there is a way to set this
>> setting via JS for IE6.
>>
>> And finally, although this is far from an ideal solution, you might want
>> to consider dropping JS in IE6 in the meantime. Everything will still be
>> functional.
>>
>> -Sarven
>>
>>
>
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev