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

perf: preload font #152

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

Conversation

realguse
Copy link

This PR aims to improve the font performance and remove the layout-shifting on the website.

Layout shifting (when refreshing):

Screen.Recording.2024-12-27.at.8.43.00.PM.mov

Copy link

vercel bot commented Dec 27, 2024

@realguse is attempting to deploy a commit to the catppuccin Team on Vercel.

A member of the Team first needs to authorize it.

@sgoudham
Copy link
Contributor

I can't quite remember @unseen-ninja, was there an intentional reason for why we didn't do this from the beginning?

@unseen-ninja
Copy link
Member

Yesn't. Iirc it all came down to first-paint-time where preloading the font delayed it quite a bit. But personally I don't mind it either way – tho I still think shipping a font is overrated. :^)

Happy to have this merged. c:

Copy link

vercel bot commented Dec 28, 2024

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

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2024 11:13pm

@realguse
Copy link
Author

tho I still think shipping a font is overrated. :^)

@unseen-ninja you think we should just use the system fonts and do something like this:

font-family: ui-sans-serif, system-ui, sans-serif

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.

3 participants