Easily observe changes in DOM tree with MutationObserver API
Photo by mostafa meraji on Unsplash
You might find yourself need to know when the DOM has changed so you can eg. trigger a function. That could be to show a notification or send a fetch request to an API. You might not know when the tree is triggered...
blog.kasperdue.com3 min read