DEV Community

Discussion on: Javascript DOM Manipulation to improve performance

Collapse
 
szhou1 profile image
Steve Zhou

cloneNode() is actually slower than html.concat()
jsperf.com/dom-manipulations-szhou

Either way, thanks for your post! Very helpful!

Collapse
 
vitalyche profile image
Vitaly Chernov

No, added one more case (cloneNode + append.apply)
jsperf.com/dom-manipulations-szhou/2, this is the fastest - for Chrome on Mac