Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Eliminate render-blocking resources in Pagespeed Tests

  • #5196
    Avatar photo[anonymous]

    When I test my website, I see the error in the link : https://hizliresim.com/XjOV5Q

    What should I do to fix this problem?

    #5197
    Avatar photo[anonymous]

    I’m using technews theme btw.

    #5199
    Avatar photoBob

    I suggest you dig into Google search.

    #5201
    Avatar photo[anonymous]

    Yeah Bob, i know how to search on google. 80% of articles are for wordpress not for Publii. Amazing answer by the way, you made my day.

    #5202
    Avatar photoBob

    You’re welcome 🙂

    It doesn’t matter what CMS do you use.
    I can help you implement your changes to the Publii theme, indicate where to make them, but optimize an already highly optimized page, I’m afraid that due to the lack of time not anymore.

    #5267
    Avatar photo[anonymous]
    @ Adwoox While i don’t know of an easy way to fix this you can aleviate the problem by publishing through cloudflare and enable caching. Your external css files will then (eventualy) be served from an /assets/css/ frolder. And while your at it enable brotli compression and other optimizations on the speed tab.
    This will load your site over a HTTP/2 (or 3 with QUIC if you enable it) with server side push of the resources. This mitigates the problem.
    See this in action on https://woordenliefde.nl/.
    I know it’s not a real fix, but it may be a good work-around and as a bonus you get reasonably fast delivery from a local internet exchange.
    Cloudflare-Caching
    #5271
    Avatar photo[anonymous]
    [anonymous] wrote:
    @ Adwoox While i don’t know of an easy way to fix this you can aleviate the problem by publishing through cloudflare and enable caching. Your external css files will then (eventualy) be served from an /assets/css/ frolder. And while your at it enable brotli compression and other optimizations on the speed tab.
    This will load your site over a HTTP/2 (or 3 with QUIC if you enable it) with server side push of the resources. This mitigates the problem.
    See this in action on https://woordenliefde.nl/.
    I know it’s not a real fix, but it may be a good work-around and as a bonus you get reasonably fast delivery from a local internet exchange.
    Cloudflare-Caching

    Thanks Mick, for a new website cloudflare is good option as you say. However, when the traffic increases, both the cost and the management can be a bit difficult at the cloudflare side. But i will try this as a temporary solution. Thank you again.

    #5277
    Avatar photo[anonymous]

    The issue is your fonts.

    To use the browser default fonts and remove the error your having ( will change the look of your site )

    Go to Theme—–>Fonts—-> then under Font Family Select OS Default Font + OS Default Font.

    Problem solved.

    If you do not like how your site looks with basic fonts, then you will have to endure the render blocking result as Publii currently doesn’t support self hosted fonts.