At the moment a website I am working on has custom fonts loading through the Bricks Builder custom fonts library, and unfortunately they are blocking the page from rendering for about 4 seconds(!) while they load.
Doing a little searching online, I came across the idea of FOUT (flash of unstyled text) vs FOIT (flash of invisible text) with web fonts. Apparently this was being talked about ten years ago.
Anyway, I was wondering if it were possible to either load local font files (through the Bricks Builder custom fonts system) asynchonously, or to load them with FOUT, as the following dated how-to article explains: How We Load Web Fonts Progressively | Filament Group, Inc.
I highly recommend you convert your TTF fonts to WOFF2. They will be tiny vs TTF, the render speed should be much better.
I’ve used this before, seems to work OK;
But yes, if Bricks had some options how to render custom fonts (like the options Elementor), that would be great.
We’ve added a “Preload custom fonts” setting (Bricks » Settings » Performance) in Bricks 2.0 RC2, now available as a manual download in your account (see changelog).
Please let us know if you are still experiencing issues.
As with any pre-stable release, please do not use it on a production website. It is intended for testing in a local or staging environment only.
i am using ONLY 2 fonts that i uploaded to bricks, these are from iCONS? which i also removed? but for some reaason every page style sheet loads on every page? i have tried wp rocket to optimize but can’t because bricks breaks on my amelia booking/woo sites.
this is what i am saying. if you use an icon box, even with icons removed after, it loads the full icon set of fonts every single page every time. i can’t figure it out. ny homepage is right there in the parentheses lol
there’s certainly no woo commerce elements.
i don’t get it
You are mixing up various topics, which will probably lead to even more confusion.
This thread is not about icon fonts, custom icons or anything else, but about preloading custom fonts, i.e. the custom fonts (not icon fonts or google fonts) that you use on your website and that you have uploaded manually. These can now be preloaded. That is the content of this feature request.
As far as loading the icon fonts is concerned in your case: as long as an icon of an icon font is set, it will of course be loaded. If it is in the footer, as it is on your website (you’re using font awesome brands and iconicons there), it will be loaded on every page, since the footer shows on every single page.