Skip to content

Conversation

@spathon
Copy link
Owner

@spathon spathon commented Jan 17, 2026

Replace Google Fonts CDN with @fontsource for better performance:

  • Self-host Open Sans fonts (weights 300, 400, 500, 600)
  • Use Latin subset only for English content to reduce file size
  • Eliminates external font requests (improves privacy and performance)
  • Adds DNS prefetch for Google Analytics

Performance benefits:

  • Reduces external requests from 1 to 0 for fonts
  • Latin subset reduces font file size by ~40-50%
  • Faster font loading with font-display: swap
  • Better control over font loading and caching

Replace Google Fonts CDN with @fontsource for better performance:
- Self-host Open Sans fonts (weights 300, 400, 500, 600)
- Use Latin subset only for English content to reduce file size
- Eliminates external font requests (improves privacy and performance)
- Adds DNS prefetch for Google Analytics

Performance benefits:
- Reduces external requests from 1 to 0 for fonts
- Latin subset reduces font file size by ~40-50%
- Faster font loading with font-display: swap
- Better control over font loading and caching
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

Successfully merging this pull request may close these issues.

3 participants