• Resolved dimondevs

    (@dimondevs)


    Hello. I installed your plugin and purchased a license from criticalcss.com. I am using google fonts on the site. And I noticed that the font is loaded 2 times. Once from critical-css, and the second by reference in the head section. Could you exclude font-face rules in critical-css by default, or how can this be done?
    Thank you for your help

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

    (@optimizingmatters)

    This is something the guys over at criticalcss.com have on their backlog, but not possible yet.

    As a (temporary) workaround you could try to:
    1. tick “remove Google Fonts” on Settings -> Autoptimize -> Extra
    AND
    2. tick “fetch original CSS” on Settings -> Autoptimize -> Critical CSS -> Advanced Settings

    Alternatively there’s a filter you could hook into (autoptimize_filter_ccss_core_ccss) to alter the criticalcss (using str_replace to remove the fonts from it), but that would be … hackish, I guess? 😉

    hope this helps,
    frank

    Thread Starter dimondevs

    (@dimondevs)

    Thanks for the advice, I will try your solutions and report the result

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘remove font-face rules in critical-css’ is closed to new replies.