MutationOberserver and Mutation Events
MutationObserver is the new way to observer changes in the DOM, like added and removed nodes and changed attributes. Before MutationObserver this was accomplished with Mutation Events, but still relevant for IE < 11.
Some nice reading:
- Migrating mutation and property change events to Mutation Observers
- MS reference for MutationObserver
- MDN reference of MutationObserver
See the console for information about what is going on.