DOM is slow. Repaints and reflows are even slower. Keep the number of DOM nodes down. Cache created DOM node, and use them as a pool of pre-assembled elements.
Appears in lists (1)
More like this (2)
Fast and lightweight DOM diffing/patching (no virtual DOM needed)