• Resolved gatehealing

    (@gatehealing)


    Hi Frank et. al.,

    I am getting a warning from PageSpeed and GTmetrix about needing to “Eliminate render-blocking JavaScript and CSS in above-the-fold content.” Other related plugins: CloudFlare (CDN plugin), WP SmushPro/WPMU Dev Dashboard (I’m not sure if this is relevant, but it does a lot . . . ).

    PageSpeed says:
    “Your page has 1 blocking script resources. This causes a delay in rendering your page.
    None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
    Remove render-blocking JavaScript: https://gatehealing.com/wp-content/cache/autoptimize/js/autoptimize_c140746bedbc2a5d40ad351e3ebcdfca.js”

    I have seen a few posts in here about above the fold content and blocking script, but I may not be advanced enough to know if I saw the answer . . . any advice would be much appreciated while I learn this stuff.

    Thanks for the Plugin!
    Jon

    https://wordpress.org/plugins/autoptimize/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Hi Jon;
    Untick the “force JS in head” option, that should fix the render-blocking warning.

    hope this helps,
    frank

    Thread Starter gatehealing

    (@gatehealing)

    Thanks for the super fast response!

    Unfortunately, that seems to make it worse as I now get “Your page has 2 blocking CSS resources.” as opposed to 1; although these are for CSS instead, so it’s different. I have no idea why fixing JS would create an issue with CSS, but I’m fairly new to all this. They are:
    https://gatehealing.com/wp-content/cache/autoptimize/css/autoptimize_4cdbba36b5c9a4ed38105419073bead5.css

    https://gatehealing.com/wp-content/cache/autoptimize/css/autoptimize_4613e3b5e5eaa77353f41b0de9055d2c.css

    Fingers crossed that it’s just another check box to change!
    Jon
    ***EDIT*** I’ve tried changing the checkboxes in a few configurations, including where they were before, and I’m still getting 2 render blocking notices now, so it may not be anything with your suggestion. I am using CloudFlare CDN, but I don’t know if that would cause this.

    ***2nd EDIT*** And now the js render blocking message is back, but only for desktop version??

    Plugin Author Frank Goossens

    (@futtta)

    well …
    for JS; make sure “force in head” is unchecked
    for CSS; consider switching to “inline all CSS” (easy) or “inline & defer CSS” (difficult but bettter), see FAQ for more info on the difference and how to proceed.

    frank

    Thread Starter gatehealing

    (@gatehealing)

    After playing with endless combinations of check boxes being checked, I think I have found the best combo so far (just in case this comes up, it may help another user). An X means “checked box”, O means “not checked”:
    *note: regarding CDN options–filling this in gets rid of my images, but my homepage is not my blog page.

    HTML Options
    Optimize HTML Code? X
    Keep HTML comments? O

    JavaScript Options
    Optimize JavaScript Code? X
    Force JavaScript in <head>? O
    Also aggregate inline JS? X
    Exclude scripts from autoptimize: I just left this as is
    Add try-catch wrapping? O

    CSS Options
    Optimize CSS Code? X
    Generate data: URIs for images? X
    Remove Google Fonts? X (I don’t use them)
    Also aggregate inline CSS? O
    Inline and Defer CSS? O
    Inline all CSS? X
    Exclude CSS from Autoptimize: I left this as is

    CDN Options
    CDN Base URL: Left blank until I find out how to do this so it doesn’t leave my images blank

    Cache Info
    Cache folder: should be prepopulated for you
    Can we write? Yes
    Cached styles and scripts should be prepopulated
    Save aggregated script/css as static fiels? X

    I hope this helps you help some other folks out . . . if you see any of these settings that I could change to improve further, please let me know.

    Thanks again for the plugin. Wish I would have found it a few weeks ago!
    Jon

    Plugin Author Frank Goossens

    (@futtta)

    thanks for sharing jon! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PageSpeed/GTmetrix warning about above fold blocking.’ is closed to new replies.