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

Font loading causes text to shift on initial page load #183

Open
xkopenreview opened this issue Aug 19, 2020 · 1 comment · May be fixed by #2145
Open

Font loading causes text to shift on initial page load #183

xkopenreview opened this issue Aug 19, 2020 · 1 comment · May be fixed by #2145

Comments

@xkopenreview
Copy link
Collaborator

fonts will change on hard fresh of page

Jietu20200819-145846-HD

looks like this is caused by display=swap param passed to googleapis.com in Layout.js
removing this attribute will stop text from flashing in local

@zbialecki
Copy link
Contributor

This is something we should benchmark. I think that removing display=swap will cause the page to display nothing until the font is fully loaded, meaning that the page feels like it takes longer to load, especially on slower connections. I'm not sure how much longer though.

@zbialecki zbialecki changed the title text flashing on page refresh Font loading causes text to shift on initial page load Sep 4, 2020
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 a pull request may close this issue.

2 participants