addClass() removeClass()
If you have to add or remove multiple classes with jQuery, the most efficient way is to separate the classes with a space and make one call.
Such as:
1 | $('body').addClass('abc def'); |
As opposed to:
1 | $('body').addClass('abc').addClass('def'); |