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

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

--

--

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shuvo Habib

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