Overview
Currently we ship both WOFF and WOFF2. It’s no longer very needed and I propose we drop support for WOFF for Fontsource v6.
-
caniuse states WOFF2 supports 96.7% of browsers.
-
Vite defaults only target modern browsers that are baseline widely available. In fact, its default target has exceeded WOFF since Vite v1 as it targeted ES module support.
-
Dropping WOFF cuts package size and reduces maintenance burden.
- e.g. @fontsource/roboto: ~3.5 MB -> ~1.3 MB unpacked (and not very compressible).
- @fontsource/noto-sans-jp is ~76.8 MB unpacked.
-
Older browsers can still fallback to default browser fonts (which arguably is better for them from a performance and security standpoint).
Reactions are currently unavailable
Overview
Currently we ship both WOFF and WOFF2. It’s no longer very needed and I propose we drop support for WOFF for Fontsource v6.
caniuse states WOFF2 supports 96.7% of browsers.
Vite defaults only target modern browsers that are baseline widely available. In fact, its default target has exceeded WOFF since Vite v1 as it targeted ES module support.
Dropping WOFF cuts package size and reduces maintenance burden.
Older browsers can still fallback to default browser fonts (which arguably is better for them from a performance and security standpoint).