3 ms·
Well, according to small tests, jquery's selectors are slower than the 'native' selectors; findElementById for example is at least twice as fast as jquery's $('
by Cthulhu_ 13y ago
Well, according to small tests, jquery's selectors are slower than the 'native' selectors; findElementById for example is at least twice as fast as jquery's $('#someId') call. But that's because jquery has to parse the query first.
It's a productivity versus performance thing, really. Native JS is often faster than the same thing in jquery.
- domrdy 13y agoHere's a relevant test: http://jsperf.com/queryselectorall-vs-jquery-jb http://jsperf.com/queryselectorall-vs-jquery-jb