tolmark12
Joined 14 years ago
Karma
15
Submissions
16
Member since
Dec 12
Joined 14 years ago
http://blogs.scientificamerican.com/plugged-in/how-north-kor...
When selecting one DIV by id, I'm consistently getting:
DOM - 0.08ish ms
Jquery - 0.2ish ms
I do have an app where every millisecond is critical. For this app I'm using raw dom selectors. However, most of the time, the convenience of jquery selectors outweigh these performance gains.
[1] - http://jsfiddle.net/tolmark12/9R39R/ (open console)