Skip to content

Keep marketing fonts and prefetch off the viewer route - #12

Merged
anishshobithps merged 1 commit into
mainfrom
perf/site-route-group
Nov 10, 2026
Merged

anishshobithps merged 1 commit into
mainfrom
perf/site-route-group

Conversation

@anishshobithps

Copy link
Copy Markdown
Contributor

Summary

  • Adds a (site) route group holding the landing page and brand page, with a layout that provides the marketing fonts (Bricolage, Manrope and Geist Pixel Square). The URLs do not change.
  • The root layout now loads only Geist Sans and Geist Mono. The docs layout applies the marketing fonts itself, through one shared site-fonts module.
  • Geist Pixel is imported from geist/font/pixel/square, so only the one face the site uses is built, instead of all five.
  • The viewer's links to / and /docs no longer prefetch. Prefetching them pulled the landing page's scripts and the marketing fonts into every viewer session.

Measured (production build, fixture session)

  • Scripts loaded before the editor: about 540 KiB to about 403 KiB gzipped.
  • Fonts downloaded on the viewer: 244 KiB across 9 files to about 69 KiB across 2 files.
  • /, /brand and /docs still set their headings in the marketing faces (checked by the new tests).

Tests

  • New: a viewer font budget (no pixel faces, at most 100 KiB), and checks that the landing, brand and docs headings keep their faces.
  • The first-load script gate drops from 600 KiB to 450 KiB.
  • 23 end-to-end tests, lint, type checks and the production build pass locally
  • CI

The 170 KiB script target in the blueprint is not reachable here: React and Next alone measure about 200 KiB. I commented on the existing issue with the breakdown and a revised target.

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website-vw4l Ready Ready Preview Nov 10, 2026 4:33pm UTC

@anishshobithps
anishshobithps merged commit a8a7a5e into main Nov 10, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview – website-vw4l — 1dc3c97f Deployed Nov 10, 2026 by vercel[bot]
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