[jQuery] Re: jQuery DOM slowness

2007-09-14 Thread David Cramer
Alright thanks for all the help, good information to know :) On Sep 13, 2:53 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Michael Geary schrieb:> If you need event handlers on the elements, assign a > single event handler to the table and use event bubbling to catch events for > > all of the

[jQuery] Re: jQuery DOM slowness

2007-09-13 Thread Jörn Zaefferer
Michael Geary schrieb: If you need event handlers on the elements, assign a single event handler to the table and use event bubbling to catch events for all of the elements at once. See an earlier post of mine for details: http://groups.google.com/group/jquery-en/msg/785b404914c25511 Hey M

[jQuery] Re: jQuery DOM slowness

2007-09-13 Thread Flesler
I'm not sure about that, but on situations like that one, I'd personally do it with innerHTML instead of DOM method. Although they are always great, innerHTML is way faster, you generate the whole string and then insert it all at once. That would be the fastest way. Just my opinion :) On 13 sep,

[jQuery] Re: jQuery DOM slowness

2007-09-13 Thread Michael Geary
> From: David Cramer > > I noticed some slow down today when rendering almost 1000 TD > elements with jQuery. I had originally assumed JavaScript was > just slow but that didn't seem right. After doing some tests, > it seems jQuery takes nearly 10x longer than normal DOM > manipulation to ren