createDocumentFragment
createDocumentFragment is a method on the Document interface in the Web Platform. It creates and returns a new DocumentFragment, which is a lightweight, invisible container used to hold nodes temporarily before they are inserted into the live document.
A DocumentFragment acts as a minimal subtree that is not part of the main DOM tree. You
Typical usage involves creating the fragment, populating it with nodes, and then appending it to a target
Notes and considerations: a DocumentFragment contains nodes but has no parent, and it cannot be styled as