I\'ve been looking at using documentFragments in a Backbone.js app and was wondering why I see examples where \"cloneNode\" is used when appending the documentFragment to th
I'm not exactly sure, but in the context of the link you provided (performance testing) the oFrag.cloneNode(true)
might be a safeguard against reusing the elements already added in DOM in previous runs of the loop, which would result in way faster execution of the test.
I see no reason to use it in normal use cases of documentFragments.