Skip to content

Inline critical font subsets to fix first-paint rendering - #55

Merged
rossarmstrong merged 1 commit into
mainfrom
development
Aug 5, 2026
Merged

Inline critical font subsets to fix first-paint rendering#55
rossarmstrong merged 1 commit into
mainfrom
development

Conversation

@rossarmstrong

Copy link
Copy Markdown
Member

Embed subsetted Outfit and JetBrains Mono variable fonts as base64 faces in the four root pages and the docs stylesheet, prepended to the display and mono stack variables under their own family names, and remove the two font preloads. The real fonts now render at first paint on throttled mobile connections, where the previous font-display optional configuration used the fallback for the whole page view. Scale the hero letter-spacing with the clamped font size, and document the subset regeneration command.

Embed subsetted Outfit and JetBrains Mono variable fonts as base64 faces in the
four root pages and the docs stylesheet, prepended to the display and mono stack
variables under their own family names, and remove the two font preloads. The
real fonts now render at first paint on throttled mobile connections, where the
previous font-display optional configuration used the fallback for the whole
page view. Scale the hero letter-spacing with the clamped font size, and document
the subset regeneration command.
@rossarmstrong
rossarmstrong merged commit 2254429 into main Aug 5, 2026
2 checks passed
@rossarmstrong
rossarmstrong deleted the development branch August 5, 2026 13:49
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant