Detect DOM changes with Mutation Observers

Back in 2000 the Mutation Events API was specified to make it easy for developers to react to changes in a DOM (eg DOMNodeRemoved DOMAttrModified etc)

This feature wasn’t widely used by web developers but it presented a very convenient and popular use case for Chrome Extensions if they wanted to perform some action when something in the page changed

Mutation Events are useful but at the same time they create some performance issues The Events are slow and they are fired too frequently in a synchronous way which causes some…..




View Post
0saves