Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: astro-font - optimize fonts & prevent CLS #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rishi-raj-jain
Copy link

Astro Font: https://www.launchfa.st/blog/building-astro-font

Changes

This PR integrates astro-font which automatically generates the fallback font and pass it as the CSS Variable.

Copy link

vercel bot commented Jan 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
astroship ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 26, 2024 11:11am

@surjithctly
Copy link
Owner

thanks. i compared the preview with the current one, but I don't see any significant improvement. Aso requests + total size has been increased. Fonts seems to be adding 3 times in the network console.

The current one loads from local, but your PR loads 3 times from google cdn. I don't know if I'm checking wrong, but can you prove this is better?

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.

None yet

2 participants