Hi!
Thanks for providing the screenshot. That’s very helpful!
wp_remote_get()
times out while fetching the stylesheet from the Google Fonts API. So that means that PHP (cURL) probably isn’t allowed by your server to request/open/read external resources. I suggest you contact your hosting provider and have them look into it.
If you need more help, you know where to find me!
Thanks for the reply!
Today is an other day and as a sudden, this specific error was gone like it was never there, even when I try different pages. Can’t explain that.
We use “Visual Composer” (NOT the wpbakery one) but this time I investigated that OMGF really detects a lot of fonts and variations and if I test it one one of our pages, it loads so much fonts locally that we still have about 15 seconds loading time. Maybe it’s not optimized for Visual Composer users? Because visible are only about 4-5 different fonts-(variations) on my testing site and the OMGF plugin made 36 HTTP calls a about 0.5 s?
https://i.postimg.cc/zGGv6QTt/image.png
-
This reply was modified 9 months, 2 weeks ago by
samsports.
Can you share the site’s URL? Then I’ll be able to provide a more detailed reply. If you don’t want to share it here, you can send it to me using this contact form.
Will use the contact-form.
Okay, so looking at your page source an awful lot of Google Fonts are loaded — even when they’re not actually used in the frontend.
This is line 118 – 135 from the page source of your homepage, and I removed all lines pointing to your staging site’s URL:
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyopen-sans700regularsubsetcyrilliccyrillic-extgreekgreek-extlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3A700%2Cregular&subset=cyrillic%2Ccyrillic-ext%2Cgreek%2Cgreek-ext%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-44485' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyopen-sansregularsubsetcyrilliccyrillic-extgreekgreek-extlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3Aregular&subset=cyrillic%2Ccyrillic-ext%2Cgreek%2Cgreek-ext%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-44485' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyopen-sans700subsetcyrilliccyrillic-extgreekgreek-extlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3A700&subset=cyrillic%2Ccyrillic-ext%2Cgreek%2Cgreek-ext%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-44485' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyoswald700300subsetcyrilliccyrillic-extlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Oswald%3A700%2C300&subset=cyrillic%2Ccyrillic-ext%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-45520' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyoswald600300subsetcyrilliccyrillic-extlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Oswald%3A600%2C300&subset=cyrillic%2Ccyrillic-ext%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-45520' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyopen-sans300subsetcyrilliccyrillic-extgreekgreek-exthebrewlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3A300&subset=cyrillic%2Ccyrillic-ext%2Cgreek%2Cgreek-ext%2Chebrew%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-45520' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyoswald700subsetcyrilliccyrillic-extlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Oswald%3A700&subset=cyrillic%2Ccyrillic-ext%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-45520' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyopen-sans300subsetcyrilliccyrillic-extgreekgreek-extlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3A300&subset=cyrillic%2Ccyrillic-ext%2Cgreek%2Cgreek-ext%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-45520' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyoswald600subsetcyrilliccyrillic-extlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Oswald%3A600&subset=cyrillic%2Ccyrillic-ext%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-45520' type='text/css' media='all' />
<link rel='stylesheet' id='vcv:assets:source:styles:httpsfontsgoogleapiscomcssfamilyopen-sansregularsubsetcyrilliccyrillic-extgreekgreek-exthebrewlatinlatin-extvietnamese-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3Aregular&subset=cyrillic%2Ccyrillic-ext%2Cgreek%2Cgreek-ext%2Chebrew%2Clatin%2Clatin-ext%2Cvietnamese&ver=0-45520' type='text/css' media='all' />
So, the answer to your question is simple: OMGF is detecting all these fonts, because they’re loaded. You can use OMGF to clean up the unused fonts, by leveraging the Unload option.