Glossary Term
MutationObserver.takeRecords()
The MutationObserver method takeRecords() returns a list of all matching DOM changes that have been detected but not yet processed by the observer’s callback function, leaving the mutation queue empty.
The most common use case for this is to immediately fetch all pending mutation records immediately prior to disconnecting the observer, so that any pending mutations can be processed when shutting down the observer.
Returns: An array of MutationRecord objects, each describing one change applied to the observed portion of the document’s DOM tree.
Returns: Note: The queue of mutations which have occurred, but not been delivered to the observer’s callback is left empty after calling takeRecords().
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
