News for hackers. Stuff that matters.
Re:Why I'm still using jQuery by cdubzzz on Monday May 27, 2019 @08:12AM (#20021485)
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

Re:Why I'm still using jQuery by Carpetsmoker on Monday May 27, 2019 @08:32AM (#20021616)
You 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.
Re:Why I'm still using jQuery by marcosdumay on Monday May 27, 2019 @02:40PM (#20024313)
The slowest function on that tables gives me 900k ops/second. This will not make any difference in a mostly static page.