• Plugin Author Optimizing Matters

    (@optimizingmatters)


    If you are encountering issues with JS optimization after having upgraded to WordPress 5.5, then chances are very big this is due to the removal of jQuery migrate from WordPress core (which is the first step in updating the ancient jQuery version in WordPress core to a more recent one).

    To undo this change which indeed can lead to unexpected behaviors in some themes or plugins who run older code, you can install the “Enable jQuery Migrate Helper“-plugin which re-instates jquery-migrate.min.js for your site.

    hope this helps,
    frank

Viewing 14 replies - 1 through 14 (of 14 total)
  • Just my non-technical 2 cents :

    The problem is usually not with AO, but probably with some other plugin or theme, that is misbehaving when the JS / CSS are being run through AO.

    [1] If you are using a child theme, temporarily change to the parent theme. Clear cache and check if issue is sorted out. If problem is gone, the issue is with your child theme.

    [2] If step 1 does not work or you are not using any child themes, temporarily change the theme to a ‘safe’ theme like the default WP themes (2020 / 2019 etc.) – If the problem gets fixed, the issue is with the theme you are using.

    [3] Change back to your original theme / child theme and turn off and turn on each plugin, one by one. Clear the cache every time. This will help in zeroing in on the plugin causing the problem.

    [4] If above steps don’t fix the issue, temporarily deactivate all plugins (except AO) and change to a safe theme, clear all caches and check.

    For information…

    on our website page About Us we have a Timeline which uses ‘WP Featured Content and Slider Pro’ plug-in by wponlinesupport

    Since updating WordPress we have found that its been necessary to uncheck ‘Aggregate JS-files?’ in order for it to work. Otherwise it does not display and creates a large blank area of nothing!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    My unique experience was unchecking ‘Lazy-load images?’.

    This caused severe lag/response time. We’re talking 60 seconds plus load times for all pages and back end admin screens.

    My remedy, deactivate all plugins and reactivate all plugins. Then, recheck ‘Lazy-load images?’

    I cannot definitively say that this plugin was the only problem but I can say definitively that unchecking ‘Lazy-load images?’ causes a sizeable increase in loading times for my sites.

    • This reply was modified 4 years, 2 months ago by Nate281141.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Wow, that’s pretty bizarre Nate. If ever you encounter that again ping me here on the support forums, I’d be interested in investigating this.

    I haven’t installed the plug-in as yet.

    I informed WP Online Support Team with your information from the top of this post and they replied as follows….

    “I have checked this plugin which is a temporary solution that does not work for all websites. You can try and see if if it resolves, but speak to the “Autoptimize” team once because it’s not a permanent solution to resolve this issue. Please check and let me know its working or not.”

    I’m not entirely sure what that means and am reluctant to have to install yet another plug-in on the site since there are enough already, so for now have just left ‘Aggregate JS-files?’ unchecked. ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hey rubberneil ; had a quick look at the page you linked (a tad more time now) and the problem is likely another one. When looking at the browser console when opening https://www.j-flex.com/about-j-flex/ I’m getting the following JS error:

    Uncaught ReferenceError: wp is not defined

    This also happens when AO is disabled (by adding ?ao_noptimize=1 to the URL) and the origin of the error is wp-admin/js/color-picker.min.js. Don’t know what plugin is enqueueing that file, but they seem to be doing it wrong. As a workaround you can very likely re-tick “aggregate JS” an just add wp-admin/js/color-picker.min.js to the comma-separated JS optimization exclusion list?

    Thanks

    I tried checking the box for ‘Aggregate JS-files’ and both with and without that additional one being added to the exclusion list. In both instances this is what the page looks like: Screenshot As you can see a large blank section display and then the sections underneath are also missing their graphics.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    In that case the next step would be installing the jQuery migrate helper Neil.

    After updating to WP 5.5 and the site becoming way slow, I installed the enable jquery migrate plugin.

    When I go to the Autoptimizer Settings page, I get the following message from the jquery Migrate plugin…

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

    Please make sure you are using the latest version of all of your plugins, and your theme. If you are, you may want to ask the developers of the code mentioned in the warnings for an update.

    Something to worry about?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, I’ll review the JS of AO proper for that kendawes, thanks for notifying me ??

    facing issue with my site –

    • This reply was modified 4 years, 1 month ago by jo18.

    The symptoms of my issue was that no images were showing in IE browser.

    I unchecked ‘Aggregate JS-files’ and the issue was resolved.

    I’m unsure whether this problem was due to WP 5.5 update.

    I Don’t feel too clever unchecking an option just to satisfy a client who still uses IE, but for now that’s the solution.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Maybe as per the forum guidelines rather create a new topic for that issue Simon?

    If you include some more info (URL, JS errors on the browser console when “aggregate JS” is on, …) I can see if there’s a better way.

    thank you,
    frank

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Issues after updating to WordPress 5.5? Read this first!’ is closed to new replies.