I'm not sure how it compares but the case I'm talking about isn't simply removing all classes. I'm removing a subset of the classes and I don't arbitrarily know what other classes may be on the element.
-js On 9/19/07, seedy <[EMAIL PROTECTED]> wrote: > > > > just curious how would that compare to > $(...).attr('class',''); > > > Jonathan Sharp-2 wrote: > > > > *Do not do:* > > $(...).removeClass('a').removeClass('b').removeClass('c'); > > > > *Instead do:* > > $(...).removeClass('a b c'); > > > > Same applys to addClass() > > > > I had 15 classes I had to remove and Firefox was a champ at chained > > removeClass calls, IE was taking 760ms! > > > > -js > > > > > > -- > View this message in context: > http://www.nabble.com/PERFORMANCE-TIP%3A-removeClass%28%29-tf4482293s15494.html#a12781851 > Sent from the JQuery mailing list archive at Nabble.com. > >