Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Schlaefer
on May 20, 2013
|
parent
|
context
|
favorite
| on:
Native equivalents of jQuery functions
Not really:
http://jsperf.com/d97b341f-cfc1-4057-bdc9-60e80adb5cf6
simonw
on May 20, 2013
[–]
There is however a significant performance improvement to be had by optimising the inner loop, which is what any good programmer would do first here:
http://jsperf.com/d97b341f-cfc1-4057-bdc9-60e80adb5cf6/2
Schlaefer
on May 20, 2013
|
parent
|
next
[–]
This optimization is actually replacing jQuery in the inner loop with native calls. It was my impression that the OP suggested that this could be performed more efficiently using jQuery.
k3n
on May 20, 2013
|
parent
|
prev
[–]
Written sanely, it's only marginally slower; it's so close that it's inconsequential for 99% of uses.
ldng
on May 20, 2013
|
root
|
parent
[–]
You still have to download 81Kb of code whereas native is just that, native ;-) It's a trade-off. Depends which browser uses your target/customer.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: