4 ms·
The thing that really got me to start thinking twice about jQuery, much more than the youmightnotneed... website, was this performance test for selectors — htt
by cdubzzz 7y ago
The thing that really got me to start thinking twice about jQuery, much more than the youmightnotneed... website, was this performance test for selectors —
https://jsperf.com/getelementbyid-vs-queryselector/25 https://jsperf.com/getelementbyid-vs-queryselector/25
- Carpetsmoker 7y agoYou can build jQuery without the SizzleJS engine and then it'll just use document.querySelectorAll. You can, of course, also still use document.getElementById('foo'), so if you have a specific performance issue you can opt-out for that one function.
- marcosdumay 7y agoThe slowest function on that tables gives me 900k ops/second. This will not make any difference in a mostly static page.