add font-display: swap in your @font-face style to avoid FOIT.
Feature Use Case
Fonts are usually large files and take a lot of time to load.
There’s a reason why Google flags this behavior. Some browsers won’t render text until all the fonts are loaded. This causes what’s known as Flash of Invisible Text (FOIT).
You can fix this by forcing the browser to temporarily show a system font while the custom fonts load.
Feature Description
add font-display: swap in your @font-face style to avoid FOIT.
Feature Use Case
Fonts are usually large files and take a lot of time to load.
There’s a reason why Google flags this behavior. Some browsers won’t render text until all the fonts are loaded. This causes what’s known as Flash of Invisible Text (FOIT).
You can fix this by forcing the browser to temporarily show a system font while the custom fonts load.
Other Notes
https://wp-rocket.me/blog/improving-first-contentful-paint/ https://web.dev/font-display/