• Resolved Anthony Valentine

    (@npoutdoors)


    I’m getting some errors that I cannot figure out.

    Can someone plug my website’s homepage into google insights and give me some pointers.

    I think I have to find those files and defer them? Put them into a critical path generator and then insert them inside autoptimize in the inline section? Or am I completely wrong with that?

    Any help would be great.

    Mobile is stuck on 88/100 > 92/100 ish

    Anthony

    The page I need help with: [log in to see the link]

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

    (@optimizingmatters)

    Well, main thing are the render-blocking resources. you have two of those, the autoptimized CSS and jquery.js and what GPSI is saying is that the browser cannot start showing the page until those 2 files are downloaded.

    So regarding jquery.js; you can try removing js/jquery/jquery.js from autoptimize’s JS optimization exclusion list, but test your site thoroughly to make sure there’s no plugin on any page that requires jquery early.

    Regarding the autoptimized CSS-file; have a look at the “inline & defer CSS” option, there’s more info in the AO FAQ about that.

    Happy optimizing & enjoy your Sunday! ??
    frank

    Thread Starter Anthony Valentine

    (@npoutdoors)

    Most of my pages need that jquery file unfortunately. It would be nice if you could exclude it from certain pages only.

    So I’ve tried deferring the inline css and if anything I feel like I got worse results and it didn’t get rid of the error?

    Maybe I’m doing something wrong. I used this site to find my critical css: https://jonassebastianohlsson.com/criticalpathcssgenerator/

    Then I added it into the autoptimize Inline and Defer section.

    Thoughts?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Most of my pages need that jquery file unfortunately. It would be nice if you could exclude it from certain pages only.

    jquery can be a pain, no simple solution for that I’m afraid. excluding jquery on a per page basis can only be done with code hooking into AO’s api. do you have code development chops? ??

    So I’ve tried deferring the inline css and if anything I feel like I got worse results and it didn’t get rid of the error?

    well, I did a quick test on GPSI and your autoptimized CSS is not listed as being render blocking any more, so strictly speaking this _is_ working. now to be clear; with this approach the same critical CSS is applied to all your pages, which will not always be correct. the alternative is using the “critical CSS power-up” which auto-generates rules to insert the correct CCSS.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FIxing some Pagespeed errors’ is closed to new replies.