---
title: "Discussion on \"Easily observe changes in DOM tree with MutationObserver API\" | Hashnode"
description: "Discussion on \"Easily observe changes in DOM tree with MutationObserver API\". Photo by mostafa meraji on Unsplash\nYou 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..."
url: "https://hashnode.com/posts/easily-observe-changes-in-dom-tree-with-mutationobserver-api-1c27cbc3ea7e/625f0633da7c2f332d1d55ff"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Easily observe changes in DOM tree with MutationObserver API](https://blog.kasperdue.com/easily-observe-changes-in-dom-tree-with-mutationobserver-api-1c27cbc3ea7e?utm_source=hashnode&utm_medium=feed)

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...

May 22, 2021 · 3 min read · blog.kasperdue.com  
Read the article

## Written by

[Kasper Due](https://hashnode.com/@kasp9023)

@kasp9023

  
[View profile](https://hashnode.com/@kasp9023)

Senior Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
