3 ms·
But aren't mutation events deprecated since forever? Is the newer replacement mutation observer also unsuitable?
by kccqzy 9y ago
But aren't mutation events deprecated since forever? Is the newer replacement mutation observer also unsuitable?
- mercer 9y agoI think the article might answer that, if I understand your question correctly.
- paulirish 9y agoMutationObserver could handle this case instead of the animationstart hack yeah. Here's one impl I found: https://github.com/azu/wait-for-element.js/blob/master/lib/wait-by-observer.js https://github.com/azu/wait-for-element.js/blob/master/lib/w... (also rstacruz's referenced onmount lib also uses MutationObserver/matches()) (Mutation events deprecated since ~5 years ago, yes. )