> > > I have this piece of code that works fine, but is a bit slow (on a > > > page with =~ 25 container and =~ 70 buttons, it takes about 2 to 3 > > > seconds to complete, even after I made my best to narrow down the $ > > > (elt) set on which it is called). So I if anybody here has any idea to > > > improve it... > > > > Is it the setup, or is the 2-3 > > seconds when you click on something? > > Sorry, forgot to mention this. And yes, it's the setup that's taking > too long. > > Now most of the time is spent into curCSS() and data()...
What do your selectors look like that are used there? Here are the three I would like to know for sure: * number of elements OneOfTogglers() is applied to * containerSelector * buttonSelector