Support » Plugin: OMGF | Host Google Fonts Locally » Browser Warning when using preload

  • Resolved hardonhorsepoweradmin



    I want to begin by thanking you for this plugin, as it saves me time and effort – that is priceless! Also, I love the new name lol.

    To the business end of things – I just started testing the “preload (experimental)” feature and noticed that the browser seems to be negating this request. The following warning is provided in the console (I will obfuscate my domain for privacy purposes)

    https://[obfuscated]/wp-content/cache/caos-webfonts/fonts.css was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.”

    Upon inspection of the source code after page load, I noticed that the following:

    “<link rel=’preload’ href=’https://[obfuscated]/wp-content/cache/caos-webfonts/fonts.css&#8217; as=’style’/>”

    Should the call above include a crossorigin rule? Or may there be some other issue at hand? This warning obviously isn’t breaking anything as of right now so it’s not of major concern, I just noticed a few minutes ago as I have been trying to shave as many ms as possible off my page load speed.

    Thanks again, and please keep the latest plugin name, it’s good for a laugh each time I see it, and since I also use CAOS analytic, it helps prevent accidental clicks onto your analytics plugin in backend 🤣

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daan van den Bergh


    Haha, I’m happy the new name made you laugh! And don’t worry, I won’t change it anymore!

    Are you using any minification plugins? Because if your CSS is minified, you can’t use the preload feature. The preload feature is applied strictly to the fonts.css, but once it is minified and combined into another file, the browser never sees it loading.

    Plugin Author Daan van den Bergh


    @hardonhorsepoweradmin, since you haven’t replied anymore, I’m closing this ticket.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Browser Warning when using preload’ is closed to new replies.