Skip to content
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

Fix flash of unstyled text #214

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Conversation

ibarrajo
Copy link
Contributor

When loading the documentation, there are some flashes of unstyled text due to the fonts not being ready at the time.

Added preloading for the main fonts used as well as changed the font-display to fallback in case they do not load.

Logo could take brief time to load as well on a very slow connection, added properties to prevent text sliding on load

https://css-tricks.com/fout-foit-foft/

@ibarrajo ibarrajo requested a review from a team January 23, 2025 22:54
@ibarrajo ibarrajo merged commit 46086f9 into cadence-workflow:master Jan 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants