3 ms·
a simple querySelector with jQuery is 98% slower than just using normal DOM methods. A simple querySelector with jQuery maps directly to a normal DOM method in
by untog 12y ago
a simple querySelector with jQuery is 98% slower than just using normal DOM methods.
A simple querySelector with jQuery maps directly to a normal DOM method in browsers that support it.
- deckiedan 12y agoapart from the overhead of finding out if the normal DOM method will work - and the overhead of parsing the selector to make sure it's not using jQuery extensions.