Skip to main content
Participant
Dec 7, 2023 3:04 PM UTC
Question

Getting warnings about old version of jquery

When running on a Chrome browser any of my Animate programs that access a mysql database using ajax and PHP, I get the following warning:

jquery-3.4.1.min.js?1701946141338:2 [Deprecation] Listener added for a synchronous 'DOMNodeRemoved' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
add @ jquery-3.4.1.min.js?1701946141338:2

The latest version of jquery appears to be 3.7.1 but how can I update my version which is presumably referenced in Animate?

Mant thanks if you have any suggestions

Melvyn

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Participating Frequently
    Apr 23, 2024 9:23 AM UTC

    I found and changed this as suggested, it's on line 135 in anwidget.js:

     

    $(parent).bind("MutationObserver", function(e) { //$(parent).bind("DOMNodeRemoved", function(e) {

    That got rid of the error message and did not break anything so far 😉

     

    Translate
    Community Expert
    Apr 24, 2024 5:12 PM UTC

    So you fixed your old problem. lol

    Translate
    kglad
    Community Expert
    Community Expert
    Dec 7, 2023 3:26 PM UTC