Skip to content

Deprecated DOMNodeInserted usage in eb-animation-load.js (Chrome / PageSpeed warning) #16

@eljohndelavega

Description

@eljohndelavega

Hello,

I’m using the Flipbox plugin on a production WordPress site and noticed a browser compatibility issue related to deprecated DOM mutation events.

Affected file
/assets/js/eb-animation-load.js (v1.3.1)

Issue
The script registers a listener for the deprecated DOMNodeInserted event.
This event has been removed from Chromium-based browsers and is no longer fired.

Chrome console / PageSpeed Insights warning:

Listener added for a 'DOMNodeInserted' mutation event. Support for this event type has been removed.

Impact

  • Triggers a Best Practices warning in Google PageSpeed Insights
  • Potential risk of animation initialization failures in current and future Chrome versions

Recommended fix
Replace DOMNodeInserted usage with MutationObserver, which is the officially recommended and supported API.

Reference
https://chromestatus.com/feature/5083947249172480

If needed, I can help test a patched version or provide feedback.

Thank you for maintaining the plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions