I'm sure that's it Klaus.  I'll make some changes and report back.

-- Josh


----- Original Message ----- From: "Klaus Hartl" <[EMAIL PROTECTED]>
To: <jquery-en@googlegroups.com>
Sent: Friday, July 20, 2007 11:52 AM
Subject: [jQuery] Re: Long running script IE6, help!



JoshN wrote:
Just tried the uncompressed, same problem, long running script.

Here is a link, PLEASE DON'T CLICK AROUND, just view in IE6 and you'll
see the alert.

http://www.calabunga.com/main/pagesource.html

It's a massive page, over a MB, I'm sure that is part of the problem
but how do I rectify?

Haven't tested in IE but took a quick look at your script. You could speed up your queries if that is the problem. Instead of $(".additem") add a type selector. Assuming that element in question is an anchor:

$('a.additem')

That reduces the number of elements that have to be searched through for a class. In case of the selector '.additem' it is every single element in the document.

Even better if you have context...:

$('#fragmentofpage a.additem')

or if you want to reuse that context:

var context = $('#fragmentofpage');

$('a.additem', context)...
$('a.otheritem', context)...


--Klaus

Reply via email to