Skip to content

jQuery DOMSubtreeModified gets a Violation message in Google Chrome  #4791

@summercms

Description

@summercms

Using jQuery version: v3.4.0 and jQuery Migrate: 3.0.1 - yes I know old versions.

When I add the following code example:

$('#element').on('DOMSubtreeModified', function() {
        // do something
});

I get the following Violation message in Google Chrome 87:

[Violation] Added synchronous DOM mutation listener to a 'DOMSubtreeModified' event. Consider using MutationObserver to make the page more responsive.

Is this a bug in the latest jquery v3.5.1

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