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

Fix/ Font loading causes text to shift on initial page load #2145

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

xkopenreview
Copy link
Collaborator

@xkopenreview xkopenreview commented Oct 24, 2024

this pr should fix the issue of text shifting caused by loading fonts from google
by using next/fonts instead

the call to fonts.googleapis.com only load the font style which contains urls to the actual font
which is a sequential two-step process and showing fallback font then showing the correct loaded font is noticeable by users.

@xkopenreview xkopenreview linked an issue Oct 24, 2024 that may be closed by this pull request
Copy link
Member

@carlosmondra carlosmondra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks!

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.

Font loading causes text to shift on initial page load
3 participants