4 ms·
Can't remember where I heard it, so decided to check. Found this S.O thread http://stackoverflow.com/questions/10296791/backbone-js-performance-on-ie6-ie7-and-
by haclifford 14y ago
Can't remember where I heard it, so decided to check.
Found this S.O thread http://stackoverflow.com/questions/10296791/backbone-js-performance-on-ie6-ie7-and-ie8 http://stackoverflow.com/questions/10296791/backbone-js-perf... (different code, same concept) and decided to benchmark:
Unqueued DOM insertion: http://jsfiddle.net/arkxp/9/ http://jsfiddle.net/arkxp/9/
Queued DOM insertion: http://jsfiddle.net/arkxp/8/ http://jsfiddle.net/arkxp/8/
The latter is consistently faster, and while the difference isn't a lot with this example, given a more complex insertion it'll mount up.
- esmevane 14y agoThat is awesome. Thanks for digging it up There's at least two projects I have going at the day job which have been experiencing slowdown - and I had no idea that small-batch DOM interaction was the culprit. Looks like I've got some optimizin' to do.