This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
feat!: default to font-display: swap unless preloading (#88)
This commit sets the font-display default to 'swap', unless the preload option is set to true. Either way, the font-display value is still user-overridable using the display option. We generally recommend using 'swap' because it's the best way to avoid FOIT (flash of invisible text) and optimize LCP while still guaranteeing the web font will load (unlike optonal).
- Loading branch information
Showing 3 changed files with 18 additions and 2 deletions.