-
Notifications
You must be signed in to change notification settings - Fork 41
Reduce FOUT with font preloading #545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Reduce FOUT with font preloading #545
Conversation
c513116 to
bfea9f0
Compare
|
An automated preview of the documentation is available at https://545.site-docs.prtest2.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2025-11-19 23:28:41 UTC |
a1d41e7 to
9d0c660
Compare
9d0c660 to
16043c5
Compare
|
@julioest this PR is adding "preload" on three NotoSans fonts. In the preview https://545.site-docs.prtest2.cppalliance.org/index.html -> View Source -> the "preload" is included in the source. So the modification is there, right? Nevertheless I still get FOUT in the browser. Do you? |
Are all these "notosans" fonts the primary main fonts? If they were 404ing before, does that mean they weren't displayed? In that case, are they needed? |
Add local font paths first in @font-face src to check for fonts in antora-bundled projects before remote fallbacks. Required before boostorg/website-v2-docs#545 can merge.
100% agreed! This PR in boostlook #545 checks for the antora-bundled font path first.
It's failing because there's no |
Add local font paths first in @font-face src to check for fonts in antora-bundled projects before remote fallbacks. Required before boostorg/website-v2-docs#545 can merge.
Problem
Fonts from boostlook.css load late, causing a flash of unstyled text (FOUT) on page load for libraries that use the Antora UI bundle
Solution
Add tags in the HTML to start fetching fonts early, before CSS parsing.
Changes
Impact
Testing