Skip to content

fix(seo): remove the unused Geist Mono stylesheet - #19

Open
erkamyaman wants to merge 1 commit into
mainfrom
fix/remove-unused-font
Open

erkamyaman wants to merge 1 commit into
mainfrom
fix/remove-unused-font

Conversation

@erkamyaman

Copy link
Copy Markdown
Member

The Google Fonts stylesheet for Geist Mono blocked first paint on every page, but no tested page ever downloaded the font. It applied only to the logo link, which shows images, so this removes the stylesheet, its preconnects and the leftover references. The page looks the same.

Measurements

Lighthouse mobile, median of 3 runs. Before is production. After is a local Cloudflare runtime, so this is not a strict comparison.

Page LCP Perf CLS after
/ 4.84s → 2.86s 69 → 91 0.002
/welcome 4.00s → 2.56s 80 → 93 0.002
/guide/syntax 3.99s → 2.71s 79 → 92 0.006
/guide/presenter-mode 4.00s → 3.12s 78 → 89 0.002

LCP is still just over Google's 2.5s target on all four pages.

Testing

Build, unit tests, check:dist and format:check pass. The theme demos keep their own Google Fonts on purpose.

Not verified

  • Production numbers after deploy.
  • The logo link's font if its images fail to load: the alt text now uses the site's sans font.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
03235f4 2026-11-03T19:35:36.199Z View logs ↗

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.

1 participant