Listening to DOM changes by Javascript Web API, Mutation Observer (hint: It’s the best practice)

Shuvo Habib
4 min readOct 31, 2018

“MutationObserver” is a Web API provided by modern browsers for detecting changes in the DOM. By using this API you can listen to changes in DOM, like added or removed nodes, attribute changes or changes in the text content of text nodes and make changes.

--

--

Shuvo Habib

I'm a storyteller about UX, Frontend dev technologies, and A/B testing