javascript - Comma-separated jQuery selectors performance -


please advise way using selectors in jquery faster:

$('.class1, .class2').html(''); 

or

$('.class1').html(''); $('.class2').html(''); 

in terms performance seems same(7-8%), in terms of maintainability first method better since there no duplication of code


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -