Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
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
Post Reply
GNP
 
 
Posts: 79
Joined: Sat Dec 28, 2019 6:59 pm

Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

Post by GNP »

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.
User avatar
Pablo
 
Posts: 23399
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

Post by Pablo »

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?
GNP
 
 
Posts: 79
Joined: Sat Dec 28, 2019 6:59 pm

Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

Post by GNP »

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.
User avatar
Pablo
 
Posts: 23399
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

Post by Pablo »

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.
User avatar
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?

Post by BaconFries »

@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
GNP
 
 
Posts: 79
Joined: Sat Dec 28, 2019 6:59 pm

Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

Post by GNP »

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.
User avatar
Pablo
 
Posts: 23399
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

Post by Pablo »

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.
GNP
 
 
Posts: 79
Joined: Sat Dec 28, 2019 6:59 pm

Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

Post by GNP »

Welp, looks like compressing the fonts didn't prove much improvement either.

Looks like I'll just have to let this one go.
User avatar
Bluesman
 
 
Posts: 1197
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Preloading fonts to make them load faster - any way to do it in WYSIWYG builder?

Post by Bluesman »

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.
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...
"Make My Day"

See my Website
Post Reply