• Resolved rudolfl

    (@rudolfl)


    Hi,

    Newer version of Avada theme include its own critical CSS functionality.

    It looks like fonts embedded in this “critical CSS” section are not served through CDN.

    https://www.hatsfromoz.com.au

    Any ideas how to fix it?

    Thanks,
    Rudolf

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

    (@optimizingmatters)

    Well, you could use the autoptimize_html_after_minify filter to replace occurrences of url(//www.hatsfromoz.com.au with url(//hatsfromoz.b-cdn.net ?

    But there are some issues with the critical CSS though;
    * I see some fonts loaded with a relative path which is unlikely to “resolve”, e.g. src:url(../webfonts/fa-regular-400.eot) (the ../ in the context of the homepage points to nowhere really)
    * The critical CSS being from your theme, it will not have styles for elements from plugins
    * The normal CSS is not loaded in a deferred/ delayed manner, so it will still be render-blocking (the standard way of deferring CSS is described here)

    hope this clarifies,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘CriticalCSS — Avada theme’ is closed to new replies.