Batch updates
A technique of grouping multiple DOM changes together to minimize the number of times the browser must recalculate layout.
Every time JavaScript reads a layout property after modifying the DOM, the browser is forced to synchronously compute layout — a phenomenon called layout thrashing. By making all modifications first, then reading values, or by using requestAnimationFrame to group changes, this inefficiency can be avoided. Virtual DOM libraries like React do this automatically by batching updates before applying them to the actual DOM.