web-feature: MutationObserver

baseline logo Widely available

The MutationObserver API watches for changes to the DOM tree and calls a callback function when DOM changes occur.