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 #251

Open
wants to merge 4 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.

src/layouts/Layout.astro Outdated Show resolved Hide resolved
@satnaing
Copy link
Owner

Your integration seems to eliminate render-blocking font resource from the site. Great!
Just made a comment on the fallback section. Apart from that, everything's good.

@rishi-raj-jain
Copy link
Author

Oh alright, sure I'm adding monospace.

@rishi-raj-jain
Copy link
Author

Done, ready for your review, @satnaing.

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

3 participants