14 ms·
> The performance hit from that wrapper is pretty close to zero Unfortunately, that's rarely the case in my experience. But I'd be interested in any hard numb
by bzbarsky 13y ago
> The performance hit from that wrapper is pretty close to zero
Unfortunately, that's rarely the case in my experience. But I'd be interested in any hard numbers you have here.
https://news.ycombinator.com/item?id=2261211 https://news.ycombinator.com/item?id=2261211 and responses has some hard data from about two years ago, but it's possible that jQuery has improved a lot in the meantime, of course.
So _if_ you're at a point where you care about the performance of your DOM code, jQuery can end up as a significant bottleneck. Most people are not at that point, most of the time. But most people _are_ at that point some of the time. The trick is recognizing when they are and what to do then.