3 ms·
The reason why I left only the ID and Class selectors is because they are the fastest. Here are some test cases: http://jsperf.com/getelementsbyclassname-vs-qu
by bndr 13y ago
The reason why I left only the ID and Class selectors is because they are the fastest.
Here are some test cases: http://jsperf.com/getelementsbyclassname-vs-queryselectorall/35 http://jsperf.com/getelementsbyclassname-vs-queryselectorall...