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

refactor: use fontsource to avoid CLS #255

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Miguelburitica
Copy link

Instead of using the Google Fonts API, I added the font using the Fontsource feature in Astro. This approach makes it easier to switch fonts and improves the Lighthouse score by moving it from a range of 94-100 (when using Google Fonts) to a solid 99.
Thank you for the blog template man, it was very helpful. I'd love to contribute to the project!

@satnaing
Copy link
Owner

Hello @Miguelburitica
Thanks for your interest in contributing to this project.

After checking out this PR and triednpm run build, I encounter this error
Screenshot 2024-02-18 at 8 36 56 PM

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