• Resolved bobsled

    (@bobsled)


    As per your advice, I am using jQuery Migrate Helper to overcome a few issues on one of my sites after the WordPress 5.5 update.

    On Autoptimize, I get the following warning.

    jQuery.fn.attr(‘checked’) might use property instead of attribute

    Is this something that can be addressed in your next plugin update? Or is there a setting change you can recommend?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Try with Autoptimize disabled by adding ?ao_noptimize=1 to the URL, that way you can see what plugin or theme JS is the original culprit Bob.

    hope this helps,
    frank

    Thread Starter bobsled

    (@bobsled)

    Thanks. I checked with Autoptimize disabled and the console error points to jQuery Migrate

    jquery-migrate-1.4.1-wp.js?ver=1.4.1-wp:56 JQMIGRATE: jQuery.fn.load() is deprecated

    jquery-migrate-1.4.1-wp.js?ver=1.4.1-wp:56 JQMIGRATE: AJAX events should be attached to document: ajaxComplete

    Is this the expected behavior?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    jQuery migrate is supposed to warn you of deprecated methods used, but doesn’t it (try to) single out the originating JS (the once calling jQuery.fn.load() for example)?

    Hi, when I updated to WP 5.5 my main navigation sub menu did not appear when I scrolled over. After installing jQuery Migrate Helper, it worked. I updated all plug-ins and themes, but when I deactivate Migrate Helper, the sub menu again do not disappear. Is this a common theme issue with “Prince Clear Focus” and will this be addressed?

    I also see the following notification in the WP backend under “widgets”: Query.fn.attr(‘checked’):

    Thread Starter bobsled

    (@bobsled)

    It sounds like you have a problem with your theme @tkwpo

    Perhaps it hasn’t been updated to be compliant with 5.5. I would suggest contacting the theme developer.

    Many thanks for your reply. I have just now contacted him and hope to hear back from him!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Javascript warning’ is closed to new replies.