• Resolved paladinbrewer

    (@paladinbrewer)


    Hello,

    I’m just now trying your plugin. Marketing is complaining about our scores on GTMetrix and Google Pagespeed Insights. So I’ve been trying to defer the javascript, and for testing purposes (on a DEV environment) I just defer all javascript. This breaks a few things, and that’s fine, I just want to test it. However when I run the GTMetrix score, it still gives me 0 points for Javascript deferment. I thought perhaps there was a delay, so I let it sit overnight and checked it again today, and it’s the same. Is something not working, or does the scoring not pick up on it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @paladinbrewer

    I trust you’re doing well!

    Please see if there are any JS errors on the developer’s console. If there is a conflict with another plugin the Asset Optimization will not optimize files.

    Please make sure page caching is cleared and you’ve visited the front end pages at least twice for Asset Optimization optimize all files. Check if there is a spinning wheel om asset, if these are there, the file is not being optimized. Please see this screenshot:
    https://take.ms/1Yw3g

    If the issue still persist, please share here a link to the dev site so we could have a closer look.

    Kind regards,
    Nastia

    Thread Starter paladinbrewer

    (@paladinbrewer)

    Oh alright, I did not realize errors were preventing it from working. I went and I deferred all javascripts again (for testing), and I got this:

    View post on imgur.com

    I stopped deferring the jquery-core, and the error went away and now GTMetrix is showing 68 for Defer Parsing of Javascript, instead of 0, so that’s a nice jump I suppose. I’m not sure what the “grecaptcha” error is, I only see one javascript with that in the name, and turning off deferment does not fix it, but I suppose I’ll have to hunt that one down.

    My related question is, how to get it from 68+ and up, since the javascripts it lists are now mostly off site (googleapis and such).

    Also, quick question, is “Compress” on your plugin the same as Minify or is that done some other way? Thanks for your help thus far.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @paladinbrewer

    Compress and Minify are about the same functionalities, which is striping empty spaces and lines from assets.

    If you’re having many assets from external sources, then there’s not much you can do about them, apart from changing the loading order (footer or defer), as you can’t apply modification, combine them together, edit their browser expiry settings etc.

    We’ve also posted couple of optimization guides recently that could further help with Asset Optimization in advanced mode. Please check:

    https://premium.wpmudev.org/docs/wpmu-dev-setting-configurations/wpmu-dev-performance-optimization-guide/#advanced-asset-optimization-with-hummingbird

    https://premium.wpmudev.org/docs/wpmu-dev-plugins/hummingbird/#asset-optimization-tips

    Warm regards,
    Dimitris

    Hello @paladinbrewer

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not sure if defer javascript works’ is closed to new replies.