`[Deprecation] Listener` added for a 'DOMNodeRemoved' mutation event
[Deprecation] Listener added for a 'DOMNodeRemoved' mutation event. This event type is deprecated, and will be removed from this browser VERY soon. Usage of this event listener will cause performance issues today, and represents a large risk of imminent site breakage. Consider using MutationObserver instead. See https://chromestatus.com/feature/5083947249172480 for more information.
This is:
- Bug
Specifications
- AOS version:
2.1.1 - OS:
Windows - Browser:
Google Chrome
Expected Behavior
Not shows the warning at the console
Actual Behavior
It shows the warning at the console
Steps to Reproduce the Problem
162. document.addEventListener('DOMNodeRemoved', (event) => {
163. const el = event.target;
164. if (el && el.nodeType === 1 && el.hasAttribute && el.hasAttribute('data-aos')) {
165. debounce(refreshHard, 50, true)
166. }
176. });Detailed Description
[Deprecation] Listener added for a 'DOMNodeRemoved' mutation event. This event type is deprecated, and will be removed from this browser VERY soon. Usage of this event listener will cause performance issues today, and represents a large risk of imminent site breakage. Consider using MutationObserver instead
Possible Solution
Consider using MutationObserver instead. See https://chromestatus.com/feature/5083947249172480 for more information.
Source: michalsnik/aos