You're polling setInterval to detect DOM changes. `MutationObserver` fires when they happen.
DEV Community
You're polling setInterval to detect DOM changes. `MutationObserver` fires when they happen.
The DOM can change in ways your code didn't trigger — a third-party widget injects a node, a library...
0 comments
No comments yet.