FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[v6] Drop WOFF support · Issue #1068 · fontsource/fontsource · GitHub

[v6] Drop WOFF support #1068

Description

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeIssue contains breaking changesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL