I was playing around with DOM DocumentFragments recently, in JavaScript, seeing what I could make with them. Roughly speaking, a DocumentFragment is a lightweight container that can hold DOM nodes. It's part of the DOM 1 specification and is supported in all modern browsers (it was added to Internet Explorer in version 6). If you take a bunch of DOM nodes and append them to a fragment then you can simply append the fragment to the document. As it turns out: A method that is largely ignored in modern web development can provide some serious (2-3x) performance improvements to your DOM manipulation.
Tweet
SaveShareSend
Tags: javascript
Add your comment
Voters For This Link (16)
-
rlamarch -
bloid -
mswatcher -
zalun -
jkso -
dubness -
ckeene -
brennan -
kenman -
blegros -
socker -
vladocar -
thinkingserious -
bradrice -
pytrin -
davneter