• Resolved Frogger

    (@engenheirouva)


    I am using set as the suggestion but my score went down 10 points

    Async JavaScript Status
    Status Enabled
    Method: Defer
    jQuery: Excluded
    Exclusions:
    Plugin Exclusions:
    Theme Exclusions:
    Autoptimize Status: Enabled
    Autoptimize Method: Defer

    Any suggestions on how I can improve my score on PageSpeed with this plugin?

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

    (@optimizingmatters)

    well, maybe you simply don’t need AsyncJS in that case? as you’re already using AO, AsyncJS is only relevent if you do you have render-blocking 3rd party JS, do you have lots of that?

    Thread Starter Frogger

    (@engenheirouva)

    I still have these 4 links on the render-blocking score:

    /wp-includes/js/jquery/jquery.js
    /wp-content/cache/autoptimize/css/autoptimize_single_89d0e942b613482ed4a750cffcd7f3fc.css
    /wp-content/cache/autoptimize/css/autoptimize_9c3b71a7489a188a2d7c1d221ccc47e3.css
    /wp-content/cache/autoptimize/css/autoptimize_25e31c7135867f54bc0682ae33ae7a47.css

    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    async JS cannot help with the 3 CSS ones (you can try “inline a defer CSS” instead). for jQuery; best solution is to remove js/jquery/jquery.js from AO’s optimization exclusion list and test if that works. if not you can try to add it to AO -> Extra -> async javascript, but that might not work either.

    all in all based on the above I see little use for AsyncJS in your context.

    Thread Starter Frogger

    (@engenheirouva)

    This option inline a defer CSS I have tried twice in other websites and it always put my website down, not sure if I got how this work, so I am kinda afraid to try again.

    If I remove js/jquery/jquery.js I got this error on Chome

    Uncaught ReferenceError: jQuery is not defined
    at (index):1786

    and on firefox doesn’t work properly
    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    in that case you can’t fix the jquery render blocking unless you hunt down the plugin that requires jQuery early and reconfigure or remove it. jQuery can be a pain to optimize like that.

    Thread Starter Frogger

    (@engenheirouva)

    PS. I made a little change at minify:

    CSS Options > Exclude CSS from Autoptimize > I exclude ‘wp-content/cache/’

    And it improves a bit.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    do you mean you removed wp-content/cache/ from the exclusion list, or added it (it should be there by default)? if you removed it, do keep an eye on your cache size as that directory typically contains CSS from pagebuilders or themes that are page-specific, so that would require AO to create more optimized CSS files.

    Thread Starter Frogger

    (@engenheirouva)

    Yes. It was there by default and I removed as a test But I included it since it might cause trouble in the future.

    Thank you very much

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome frogger 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘score went down 10 points’ is closed to new replies.