Hi,
I've been googling ways to be able to preload my site fonts, so that they load faster. Currently, everytime I load my site online, the fonts take a split second to swap into the ones I want. I'd like to reduce that as much as possible.
Is there any extension or a way to do this in the builder? I've already tried to insert manual code in the <head> tags, but the problem still persists.
Any help would be much appreciated. Thanks.
Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
I am not aware of any code that can make fonts load faster. Fonts are already loaded in the head section of the page before everything else.
What type of code are you trying to add to load them faster?
What type of code are you trying to add to load them faster?
Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
I found several suggestions to use this code:
<link rel="preload" href="https://example.com/fonts/myfont.woff2" as="font" type="font/woff2" crossorigin>
I've already implemented this in the head tags to all the fonts that belong to the very first text that shows up on my site. Still no go.
<link rel="preload" href="https://example.com/fonts/myfont.woff2" as="font" type="font/woff2" crossorigin>
I've already implemented this in the head tags to all the fonts that belong to the very first text that shows up on my site. Still no go.
Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
I could not find any official documentation for this.
Did you get this information from a reliable source?
Note: if it works in other tools then the code will also work in WWB.
Did you get this information from a reliable source?
Note: if it works in other tools then the code will also work in WWB.
- BaconFries
-
- Posts: 5933
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
@Pablo maybe this will help from webdev it shows an example almost identical to the one written by the OP. It could be outdated as this was written in 2018.
Preloading Web fonts
Preloading Web fonts
Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
Hmm well either way the code isn't working.
So now I'm trying to look at the option of "optimizing" the fonts. Sort of a way to "compress" them to make them smaller in size, hence faster loading.
I'll update this as I go along, I guess.
So now I'm trying to look at the option of "optimizing" the fonts. Sort of a way to "compress" them to make them smaller in size, hence faster loading.
I'll update this as I go along, I guess.
Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
Thanks for the link.
However, I would prefer official documentation otherwise, many times these are just 'hacks' that only work for a short period of time or have side effects on other browsers.
However, I would prefer official documentation otherwise, many times these are just 'hacks' that only work for a short period of time or have side effects on other browsers.
Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
Welp, looks like compressing the fonts didn't prove much improvement either.
Looks like I'll just have to let this one go.
Looks like I'll just have to let this one go.
Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?
Hi GNP. Maybe there are other ways to improve the speed...? You did not mention which font technique you are using. Google fonts, @font-face or web safe fonts? For example when using Google Fonts you always have to consider the connection and bandwidth to the Google server. The @font-face are loaded from your own host so is faster. But it also depends how many fonts you are using. Web safe fonts is another deal that works a little different...GNP wrote: Sun Mar 30, 2025 11:00 am Welp, looks like compressing the fonts didn't prove much improvement either.
Looks like I'll just have to let this one go.