Comment

Comment by creativename

I find myself constantly trying to fight the urge to be lazy with JQuery, since I tend to forget the performance hit it entails.

For some concrete numbers, I updated a JSPerf that I found to include a raw JS implemention.

http://jsperf.com/creating-dom-elements/8

I was caught off-guard by the results - it appears that (even after multiple runs) the raw JS implementation is ~100 times (times, not %) faster. Definitely surprised at the drastic difference, although someone please correct me if I missed something in these simple test cases.

This was with Chrome on Windows, by the way.

parent creativename 13 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton