• Hi @gabelivan
    I’ve just started to use your plugin. It seems very interesting.

    I have a red flag on Pagespeed Insights. Eliminate render-blocking resources.
    Make sure all text remains visible while the web fonts are being loaded:
    /wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-solid-900.woff2
    /wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-regular-400.woff2
    (Cumulative layout shift is high: 0,513)

    In settings I added those to Preload Local Font Files. I was expecting that would solve the problem but it didn’t make any difference at all.

    What am I doing wrong? Is there a way to solve the problem with the free version of your plugin?

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @boppar I’m glad you find this plugin interesting and I hope the problem you’re having will be solved as soon as possible.

    If you’re getting “Make sure all text remains visible while the web fonts are being loaded”, then it’s very likely to the fact that you don’t have the following CSS added to the @font-face value within the CSS files which is “font-display: swap;“. Now, this is done automatically by Asset CleanUp Pro (not the Lite) and if this option is enabled in “Settings” -> “Local Fonts” and then “Apply font-display: CSS property value”, you shouldn’t get this red flag on PageSpeed Insights anymore.

    What the plugin does is the following: reads the content of the CSS file, alters the content if it contains any @font-face, then saves the updated content in the caching directory which is usually located in /wp-content/cache/asset-cleanup/.

    I hope it helps! Let me know if I can further assist you!

    Thread Starter boppar

    (@boppar)

    Hi @gabelivan
    If I understand you right, adding those fonts to preload in Loval fonts won’t do any difference (in the Lite version).

    I already have a display:swap setting in Autoptimize. Apparently that doesn’t work as I get the message “Make sure all text remains visible while the web fonts are being loaded”

    https://ibb.co/sH9vhCN

    Plugin Author Gabe Livan

    (@gabelivan)

    @boppar I can check your website and do a few tests related to the “Local Fonts”. If you’re comfortable to share your website’s URL here, please do so, otherwise, you can write to me at https://www.gabelivan.com/contact/

    Thread Starter boppar

    (@boppar)

    Hi Gabe @gabelivan
    Thanks a lot.

    Here is the site:
    https://ibb.co/XkGdbDb

    Thread Starter boppar

    (@boppar)

    Hi Gabe @gabelivan
    You wrote you would check my site.
    6 weeks have passed and I’m still waiting.
    Site:
    https://ibb.co/K5yq1xv

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

The topic ‘Preloading local font files doesn’t work. Why?’ is closed to new replies.