Support » Theme: Astra » Pagespeed astra.woff

  • Getting this warning in Pagespeed Insights for astra.woff:

    “Consider using <link rel=preload> to prioritize fetching resources that are currently requested later in page load.”

    It says that astra.woff is affecting loading time by 1.68s.

    Tried to disable, but them the hamburger menu on mobile gone wrong, as it uses that resource.

    Some tips I could do?

    thanks!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello @dustrj

    Can you try using the following code in the functions.php of your child theme to see if it helps – https://gist.github.com/Balachandark/3bc4abaccf1bf07fcec378d1dc59b719 ?

    In the above code, we are disabling the default fonts and preloading the Astra fonts using the wp_head action.

    Regards,
    Suman

    Thread Starter dustrj

    (@dustrj)

    Hello. Thanks for helpping.
    Now in Pagespeed Insights it’s says, referring to astra.woff and anstra.ttf :

    “Make sure text stays visible while webfont loads.

    Warnings: Lighthouse was unable to automatically verify the font display value for the following URL: https://dustadventure.com/wp-content/themes/astra/assets/fonts/astra.svg.&#8221;

    However, that modification did improve the total score in Pagespeed Insights.

    Hello @dustrj

    We have fixed the lighthouse warning. You can find the updated code in the provided gist link to see how it goes.

    Look forward to hearing from you.

    Regards,
    Suman

    Thread Starter dustrj

    (@dustrj)

    Hi there.

    Thank you for the help. But the lighthouse warning persists even after updating de code, referring to woff2.

    Regards

    Hello @dustrj

    We visited your website, but we were unable to see the updated code in his markup.

    The CSS is updated but the link tags are not visible. This could be due to conflict with another plugin.

    Could you please open a ticket so that we can take a look and help you accordingly?

    Regards,
    Suman

    Thread Starter dustrj

    (@dustrj)

    Hello. Thanks for replying.

    Sorry, I’ve been making more tests, so sometimes I removed the modified code to see how it changes the analysis by Speedpage. You probably visited the site when it was not updated with the code provided. I added it again now, so Pagespeed is showing the lighthouse warning.

    Thank you.

    Regars,
    Eduardo

    Hello Eduardo,

    Please open a ticket so that our team can take a look at your issue swiftly and get this resolved for you.

    Regards,
    Suman

    Has this been fixed in the private ticket?

    If so, please share the solution here.

    Thanks

    Hello @nicoter

    I have responded to your separate topic.

    You can try following to see if it helps –

    For now, you can remove the astra.svg font in the <link> tag. Only astra.woff2 should work for all the evergreen browsers.

    Also, please note that we should stick to one topic, and not create multiple duplicate topics. As it gets a bit confusing to manage the same. I hope you understand.

    I hope that helps.

    Regards,
    Suman

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Pagespeed astra.woff’ is closed to new replies.