Page 1 of 1
Custom Fonts
Posted: Thu Nov 09, 2023 12:06 am
by johnsmith0251
I'm guessing Google fonts are considered custom.
It keeps triggering a "ensure text remains visible durring web load" issue.
the fix is:
"the easiest way to make the text visible while the custom font loads is to use font-display: swap in your @font-face style. This will solve the FOIT issue for most modern browsers."
Is this possible in wwb?
Re: Custom Fonts
Posted: Thu Nov 09, 2023 4:37 am
by crispy68
Depending on what version of WB you are using...yes. it's already added.
Re: Custom Fonts
Posted: Thu Nov 09, 2023 4:19 pm
by johnsmith0251
It is a setting I need to enable? It's not automatically doing it for me.
I'm using the latest wwb 18 on the latest update.
Re: Custom Fonts
Posted: Thu Nov 09, 2023 4:23 pm
by crispy68
No, I don't believe there is a setting for this as it is added when published. Are you sure it is not being added? Do you have a link to a page?
Re: Custom Fonts
Posted: Thu Nov 09, 2023 5:58 pm
by johnsmith0251
I do see the &display=swap at the end of the Google Font listed in the header.
Maybe its a false positive because the @font-face is not mentioned?
Re: Custom Fonts
Posted: Fri Nov 10, 2023 5:08 pm
by johnsmith0251
just checkin in to see if anyone had a solution to this?
@font-face is not mentioned in the code - so could that be it?
Re: Custom Fonts
Posted: Fri Nov 10, 2023 5:09 pm
by Pablo
Maybe you have selected 'external CSS' in Tools -> Options -> HTML?
Re: Custom Fonts
Posted: Fri Nov 10, 2023 5:27 pm
by johnsmith0251
theres two options:
generate external css style sheets for page specific styles (checked)
move external css style sheets to end of page (unchecked)
Re: Custom Fonts
Posted: Fri Nov 10, 2023 5:34 pm
by BaconFries
theres two options:
generate external css style sheets for page specific styles (checked)
Then you will need to "uncheck" this..
Re: Custom Fonts
Posted: Fri Nov 10, 2023 5:42 pm
by johnsmith0251
ahhh silly me. duh. lol
thank you!