default-passive-events
default-passive-events copied to clipboard
Planned removal of crucial DOM events
Hello, lighthouse detects this library as depracated due to planned removal of some DOMevents:
DOM Mutation Events, including DOMSubtreeModified
, DOMNodeInserted
, DOMNodeRemoved
, DOMNodeRemovedFromDocument
, DOMNodeInsertedIntoDocument
, and DOMCharacterDataModified
are deprecated (https://w3c.github.io/uievents/#legacy-event-types) and will be removed. Please use MutationObserver
instead.
The library is great, are you planning to migrate to MutationObservers instead? I think it would be worth giving it a try.
Hey @partiid!
Could you elaborate a bit more about the problem?
In this library none of DOM*
events are used. Also - MutationObserver
shouldn't be needed in the implementation either.
Hello, sorry for not replying. The screen above says it all. If noone of them are used, why lighthouse detects it as deprecated API?