Monday, July 21st, 2008
John Resig continues his streak of compelling blog entries with “DOM DocumentFragments” where he shows that:
A method that is largely ignored in modern web development can provide some serious (2-3x) performance improvements to your DOM manipulation.
The technique shown is compatible across a large swath of modern browsers, including our friend IE6. Here’s an example of using DocumentFragments:
var div = document.getElementsByTagName(“div”);
var fragment = document.createDocumentFragment();
Posted by Ben Galbraith at 9:00 am