You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i. Its a deprecated API; several browsers (e.g. some versions of Phantom, etc.) don't implement some or all the features of it
ii. Some browsers which use the event anywhere enter slow state for the entire DOM
iii. It cannot support arbitrary DOM: moving forward I'm considering implementing MOs on virtual dom or idom.
iv. Like this shim, its difficult to impossible to capture all the MutationEvents the MutationObserver supports in all the browsers
However, there are a number of disadvantages as well - namely, performant polling requires making some tradeoffs; may miss some changes; and may identify the wrong changeset if the DOM changes like crazy
Both shims can be quite well suited different use cases depending on: observed vs non observed DOM size, types of events being observed, and types of DOM thrashing occurring.