DocumentFragment

A lightweight container for DOM nodes that is not part of the page, used to build many nodes and insert them all in one step.

In more detail

Changes to a fragment cause no layout, because it is off-screen. Appending the fragment moves all its children into the page at once and leaves the fragment empty. Template content is also a DocumentFragment.

Related terms

Taught in

References