Skip to content

Fix font flickering by moving Google Fonts loading to HTML head#232

Merged
amavashev merged 1 commit intomainfrom
claude/improve-doc-font-sS0TQ
Mar 25, 2026
Merged

Fix font flickering by moving Google Fonts loading to HTML head#232
amavashev merged 1 commit intomainfrom
claude/improve-doc-font-sS0TQ

Conversation

@amavashev
Copy link
Contributor

Move @import from CSS to tags in VitePress head config to eliminate FOUT (Flash of Unstyled Text). Preconnect hints and early stylesheet discovery ensure fonts load before first paint instead of after CSS parsing.

Move @import from CSS to <link> tags in VitePress head config to eliminate
FOUT (Flash of Unstyled Text). Preconnect hints and early stylesheet discovery
ensure fonts load before first paint instead of after CSS parsing.
@amavashev amavashev merged commit 4253f4b into main Mar 25, 2026
2 checks 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.

2 participants