Skip to content

perf: add font preconnect hint for rsms.me#286

Merged
andygrunwald merged 1 commit intomainfrom
perf/font-preconnect
Mar 21, 2026
Merged

perf: add font preconnect hint for rsms.me#286
andygrunwald merged 1 commit intomainfrom
perf/font-preconnect

Conversation

@andygrunwald
Copy link
Member

Summary

  • Add <link rel="preconnect" href="https://rsms.me" /> before the Inter font stylesheet
  • The fonts.gstatic.com origin already had a preconnect hint, but rsms.me (which serves the actual font CSS) did not
  • This allows the browser to establish the connection earlier for faster font loading

Test plan

  • astro build succeeds
  • Verify Inter font still loads correctly

🤖 Generated with Claude Code

The Inter font stylesheet is loaded from rsms.me but there was no
preconnect hint for this origin, unlike fonts.gstatic.com which
already had one. This allows the browser to establish the connection
earlier for faster font loading.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Mar 21, 2026

Deploy Preview for lively-frangollo-e43a02 ready!

Name Link
🔨 Latest commit 7414efe
🔍 Latest deploy log https://app.netlify.com/projects/lively-frangollo-e43a02/deploys/69bf01dcbd29070008df5578
😎 Deploy Preview https://deploy-preview-286--lively-frangollo-e43a02.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@andygrunwald andygrunwald merged commit ace3b04 into main Mar 21, 2026
5 checks passed
@andygrunwald andygrunwald deleted the perf/font-preconnect branch March 21, 2026 20:46
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