Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update configuration and usage of font weights #1053

Open
victorlin opened this issue Oct 28, 2024 · 1 comment
Open

Update configuration and usage of font weights #1053

victorlin opened this issue Oct 28, 2024 · 1 comment

Comments

@victorlin
Copy link
Member

These are the weights that have been configured to be available for Lato: 300, 400, 700

These are the weights used in styles: 200, 300, 400, 500

For the weights that are used but not available (200, 500), the browser will use an available weight. What's chosen seems to vary per browser.

For the configured weight that is unused (700), this means unnecessary network requests for unused font files. Each font file is ~15kB and there are two per weight (normal and italic) so this is 30kB of unused font files.

Possible solutions

  1. ⛔️ Install weights of 200 and 500.
    • These are not available for Lato.
  2. Replace usage of 200 with 300, and 500 with 400.
  3. Remove 700 from the list of configured weights.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants