Created
November 28, 2020 16:23
-
-
Save cronfy/4505ed409268441eb97d3f39cc8a9e65 to your computer and use it in GitHub Desktop.
WTF javascript is changing element in a DOM?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// who is changing element in DOM? | |
const element = $0 | |
const callback = function () { | |
console.trace('here is who and how') | |
} | |
const observer = new MutationObserver(callback) | |
observer.observe(element, {subtree: true, childList: true, attributes: true}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment