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

SpeedKit font-display property #1150

Closed
yannick-mir opened this issue Oct 25, 2024 · 1 comment
Closed

SpeedKit font-display property #1150

yannick-mir opened this issue Oct 25, 2024 · 1 comment

Comments

@yannick-mir
Copy link

Is your feature request related to a problem? Please describe.
To improve lighthouse performance I need a way to add a font-display property to the fonts that are being loaded via SpeedKit Fonts imports

Describe the solution you'd like
Add a new option to add font-display property

{
    family: 'Font A',
    locals: ['Font A'],
    fallback: ['Arial', 'sans-serif'],
    fontDisplay: 'swap',   
    variances: […]
  },

Additional context
Maybe there is already a option to do this for Nuxt Speedkit (using Nuxt 2), I know that SpeedKit is deprecated. But possibly someone has a solution to this problem?

@yannick-mir
Copy link
Author

Just noticed font-display: swap is automatically added

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

1 participant