3 ms·
I have had similar experience. Skipping jquery and calling native DOM methods directly can be surprisingly fast. Still I am curious in what the benchmarks actu
by george12 14y ago
I have had similar experience. Skipping jquery and calling native DOM methods directly can be surprisingly fast.
Still I am curious in what the benchmarks actually say. The native DOM methods appear to return before rendering is done (at least in webkit). So when we get a 200ms benchmark for 10,000 divs I suspect there it is taking a longer than that to fully render.
- jfim 14y agoYeah, they do return before rendering is done. For example, this fiddle[1] inserts 100k svg circles; it takes 1000 milliseconds on my machine, but scrolling around takes several seconds. [1] http://jsfiddle.net/vHvZD/ http://jsfiddle.net/vHvZD/