Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default to font-display: swap; closes KaTeX#2242
Google fonts seem to default to swap, and mixing them with katex makes it so that katex is invisible briefly on page load, unlike google fonts which make use of fallbacks while loading. This would unify their behavior. Ideally there'd be an option for this, and a ?display=swap in the cdn url (like google fonts: https://developers.google.com/fonts/docs/css2#use_font-display), but I don't know if jsdelivr supports that!
- Loading branch information