astro-paper icon indicating copy to clipboard operation
astro-paper copied to clipboard

refactor: use fontsource to avoid CLS

Open Miguelburitica opened this issue 1 year ago • 1 comments

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!

Miguelburitica avatar Jan 29 '24 20:01 Miguelburitica

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

satnaing avatar Feb 18 '24 14:02 satnaing

Close this PR for now. Thanks for your interest in contribution.

satnaing avatar Jul 14 '24 07:07 satnaing