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

Fonts are reloading with each styles update #55

Closed
dustin-H opened this issue Jun 30, 2016 · 1 comment
Closed

Fonts are reloading with each styles update #55

dustin-H opened this issue Jun 30, 2016 · 1 comment

Comments

@dustin-H
Copy link
Contributor

When using custom fonts, Chrome tries to reload them each time the mountNode gets updated.

This happens for example when using a custom font in a React Component A. When another component gets mounted with new styles, the renderer triggers an update of the mountNode. This replaces all css and forces the browser to refetch the fonts and rerender all text on the website. The user can see this as slight flash of the hole screen (when some Text is on the page).

Maybe fonts should get rendered in a different way.

@robinweser
Copy link
Owner

I added the issue to the troubleshooting section of the documentation as I am not sure how to handle this properly right now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants