DOMSubtreeModified
is part of the obsolete Mutation Events API, which has been deprecated (among other reasons) for being notoriously inefficient. According to MDN, DOM Mutation Events
is a feature that "has been removed from the Web", "is in the process of being dropped" and "Web apps using it may break at any time".
You should use the new MutationObserver API, which is also more efficient.
(The mutation-summary library now provides a useful inteface to this new API.)
See, also, this answer for more details and this answer for a similar usecase: A Chrome Extension using the MutationObserver API to detect (and decorate) asynchronously loaded Google search results.