-
AuthorPosts
-
March 22, 2023 at 9:32 am #1401981
Hello,
I changed a font in my site but now when page loads, then it shows the old font for a second before switching to new font.
Can you please check.March 22, 2023 at 12:40 pm #1402001Hey,
Is Load Google Fonts In Footer option enabled in Enfold theme options > Performance? If it is, this is expected.
Cheers!
YigitMarch 22, 2023 at 12:48 pm #1402002Hello Yigit,
No it has been turned of> https://ibb.co/z5Cvzzb
Please check the access credentianls are below.March 23, 2023 at 6:21 am #1402079Hi pimroll,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoMarch 23, 2023 at 8:56 am #1402113Hello,
Here is the login link.
March 24, 2023 at 5:52 am #1402239Hi pimroll,
Thanks for giving us access, please review your website now.
I saw this code in your functions.php file:
add_action('wp_head','hook_font'); function hook_font() { $output = '<link rel="stylesheet" id="avia-google-webfont" href="//fonts.googleapis.com/css?family=Open+Sans:300,700" type="text/css" media="all"/>'; echo $output; }
and I just replaced it with (to preload the font):
add_action('wp_head','hook_font'); function hook_font() { $output = '<link rel="preload" as="style" type="text/css" href="//fonts.googleapis.com/css?family=Work+Sans:700,400,100&display=auto" />'; $output .= '<link rel="stylesheet" id="avia-google-webfont" href="//fonts.googleapis.com/css?family=Open+Sans:300,700" type="text/css" media="all"/>'; echo $output; }
Best regards,
NikkoMarch 29, 2023 at 4:57 pm #1402938Hello Nikko,
Thanks but I still have the same issue, please check.
Heiki.March 30, 2023 at 4:09 pm #1403025on Performance Tab of Enfold Options – please check the “Show Advanced Options”
what do you have set for “Custom Font Display Behaviour” ?that link on the info: https://developer.chrome.com/blog/font-display/ might be usefull.
March 31, 2023 at 4:41 am #1403074Hi pimroll,
Can you try to clear the browser cache? I have checked it on my end and preloading seems to work just fine, in a quarter of a second the text does not display (since font is being downloaded by the browser) and then text shows using the correct font, so there’s no switching of font happening unlike before.
Also, please try Guenni007’s suggestion.
Best regards,
NikkoMarch 31, 2023 at 8:52 am #1403098“Custom Font Display Behaviour” – I have (auto=default)
April 1, 2023 at 12:02 pm #1403185Hi pimroll,
I have added a screen recording link on how it looked on my end. At 0:03 the page is refreshed (hard refresh to make sure it does not load old files).
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.