detached DOM tree

DOM nodes that have been removed from the page but are still kept in memory because some JavaScript still references them.

In more detail

Removing an element does not free it if a variable, a listener, an observer or a cache still points to it, and one reference keeps its whole subtree alive. Heap snapshots in developer tools list detached nodes so you can find the culprit.

Related terms

Taught in

References