[jQuery] Re: Help optimising jquery code - there must be a better way

2008-10-21 Thread Kent Humphrey
Great, thanks for that Erik. I'll try a few things and see how I go. I wasn't asking for a rewrite of the whole thing, just some pointers :> Erik Beeson wrote: > > I don't have time to rewrite your whole example, but I can offer a few > tips > that might help. Selecting by class alone can be

[jQuery] Re: Help optimising jquery code - there must be a better way

2008-10-21 Thread Erik Beeson
I don't have time to rewrite your whole example, but I can offer a few tips that might help. Selecting by class alone can be pretty slow. Basically every single tag has to be checked for the class every time you do a selection by class. It would help to at least give the HTML tag that the class is