Skip to content

Self-host fonts and icons to eliminate FOUC on first load#70

Merged
d3mocide merged 1 commit into
mainfrom
claude/preload-fonts-icons-56Ndv
May 16, 2026
Merged

Self-host fonts and icons to eliminate FOUC on first load#70
d3mocide merged 1 commit into
mainfrom
claude/preload-fonts-icons-56Ndv

Conversation

@d3mocide
Copy link
Copy Markdown
Owner

Replaces Google Fonts CDN links with locally-bundled fontsource packages
(@fontsource/inter, @fontsource/roboto-mono, material-symbols). Fonts now
load from the same host as the app, removing CDN round-trip latency and
preventing the flash of unstyled text and raw icon ligature names on first
paint. material-symbols/outlined.css already uses font-display:block so
icons are hidden (not text) during the brief load window.

https://claude.ai/code/session_014yTYoV8X1hv7wQTWYFdsp1

Replaces Google Fonts CDN links with locally-bundled fontsource packages
(@fontsource/inter, @fontsource/roboto-mono, material-symbols). Fonts now
load from the same host as the app, removing CDN round-trip latency and
preventing the flash of unstyled text and raw icon ligature names on first
paint. material-symbols/outlined.css already uses font-display:block so
icons are hidden (not text) during the brief load window.

https://claude.ai/code/session_014yTYoV8X1hv7wQTWYFdsp1
@d3mocide d3mocide merged commit 3548ff7 into main May 16, 2026
6 checks passed
@d3mocide d3mocide deleted the claude/preload-fonts-icons-56Ndv branch May 16, 2026 22:39
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