You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It’s working as expected. Using typefaces doesn’t mean that you won’t have FOUC out of the box. Moreover font-display: swap exactly does that. If you don’t want FOUC you have to preload your fonts.
Description
There is a quick flicker of unstyled content on initial page load when using a font from a typeface package.
I'm guessing it's this issue.
Steps to reproduce
yarn add typeface-pattaya
It's also visible in a deployed production build (can be hard to see sometimes but definitely happening):
Demo repo
Demo site
Expected result
No default font should be visible at all before the styled font
Actual result
The default font is visible in place of the styled font for a split second
Environment
The text was updated successfully, but these errors were encountered: