News for hackers. Stuff that matters.
Re:How Bad is DOM Interaction Really? by oscilloscope on Saturday August 10, 2013 @02:39PM (#6192154)
You can use queues when creating a large number of elements. Use requestAnimationFrame and each frame pop some elements off the queue to render them. This will help prevent the page from locking up during render events.
Re:How Bad is DOM Interaction Really? by PavlovsCat on Saturday August 10, 2013 @03:01PM (#6192238)
Also, when adding many elements (or not so many, but over and over), add them to a DocumentFragment [ http://developer.mozilla.org/en-US/docs/Web/API/DocumentFrag... ] first, and then attach that to the DOM in one piece (one big DOM update is better than many small ones).