• Resolved TheSickle

    (@thesickle)


    Hello,

    First of all amazing plugin thank you for that.

    Unfortunatrlly I have been having a strange error on GTmetrix, when I enable the plugin:
    css?family=&display=swap (canceled) fonts.googleapis.com 0

    I tested with all plugins disabled error is not present, I tried with all plugins enabled besides Twentig no error, I enable Twentig and the error appears.

    Please advise how to resolve this ?

    Thank you in advance for the time and help.

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

    (@twentig)

    Hi,

    Thanks for the kind words.

    It seems there’s an issue with the Google Fonts URL that is generated. There should be a font name in the URL: family=fontname&display=swap while you currently have css?family=&display=swap. In the Customizer > Twentig Options > Fonts panel, have you selected a Google font? If possible, would you please share the URL of your website?

    Thanks,
    Tom

    Thread Starter TheSickle

    (@thesickle)

    Hello,

    Its on a dev server with internal access only for now so no way to share 🙁

    Everything works perfectly I tested on a new install and the issue is not present, but might be related to the Litespeed caching we are configuring or some other conflict I am missing, but no matter what I try I get this error even if I do not select google font in Customizer. Tried to stop Litespeed, but error was still there.

    I suspect something breaks at some point and I am sure its somethings really stupid 😀 I am still troubleshooting this to see if I can get a resolution was hoping you have had similar issues to give me a pointer where to look 🙂

    Thread Starter TheSickle

    (@thesickle)

    I think after a ton of testing the culprit was : Webfontloader.min.js coming from Litespeed which was triggered when trying to use the option: Load Google Fonts Asynchronously. Why the error vanished when removing your plaugin I have no idea tbh otherwise I would have created the ticket for litespeed plugin.

    I also think that some other setting is causing this as well, because I tested with Load Google Fonts Asynchronously off and still got the error, my best guess is that services related to their API with QUIC.cloud have some issue with this, but as long as things work for now and speeds are good I am ok 🙂

    Again thank you for your efforts really amazing work 🙂

    Plugin Author Twentig

    (@twentig)

    Hi,

    Thanks for the heads up, glad things are working now.

    If you enjoy Twentig, please rate it. It would really help me out 🙂
    Tom

    Thread Starter TheSickle

    (@thesickle)

    Yes I will do that right now 🙂

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

The topic ‘Error with google fonts’ is closed to new replies.