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

c - sscanf() double showing zeros -

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -