Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deprecation] Listener added for a 'DOMNodeRemoved' mutation event #852

Open
Helder-Machava opened this issue Jun 28, 2024 · 2 comments
Open

Comments

@Helder-Machava
Copy link

Helder-Machava commented Jun 28, 2024

[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.

image

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.

@omar-abdul
Copy link

omar-abdul commented Jul 20, 2024

Is this library still maintained?, its a great piece of work, just wondering if its still maintained, no commits for the past 6 years and issues seem to be piling.

If the owner is not well, I wish him great health

@Helder-Machava
Copy link
Author

ow, indeed.
I also wish the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants