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

Uses deprecated APIs in main.js #3174

Closed
pmoreno-rodriguez opened this issue Aug 20, 2023 · 4 comments
Closed

Uses deprecated APIs in main.js #3174

pmoreno-rodriguez opened this issue Aug 20, 2023 · 4 comments

Comments

@pmoreno-rodriguez
Copy link
Contributor

Hi.
Recently I've been testing with Lighthouse my site made with Grav and Gantry 5, and this shows the following result in main.js:

Uses deprecated APIs 1 warning found

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.

@LMKWeb
Copy link

LMKWeb commented Sep 5, 2023

This issue was also flagged in Chrome dev tools on a Joomla 4 website running Gantry 5.

@hexplor
Copy link
Collaborator

hexplor commented Sep 29, 2023

Looking. Thanks for reporting.

@hexplor
Copy link
Collaborator

hexplor commented Sep 29, 2023

Please check on nightly builds: https://gantry.org/downloads#ci-builds
I have fixed that issue.

@pmoreno-rodriguez
Copy link
Contributor Author

Hi @hexplor

Good job. I have re-run some tests on my page, updated with the latest changes you have made and there is no trace of any warnings about DOM Mutation Events.
Thanks so much.

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

3 participants