Comma-separated Jquery Selectors Performance
Please advise which way using selectors in jQuery is faster: $('.class1, .class2').html(''); or $('.class1').html(''); $('.class2').html('');
Solution 1:
In terms performance they seems to be almost same(7-8%), but in terms of maintainability the first method will be better since there is no duplication of code
Post a Comment for "Comma-separated Jquery Selectors Performance"