Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

refactor: font setup#24

Merged
simenandre merged 1 commit into
mainfrom
refactor-fonts
Jan 27, 2023
Merged

refactor: font setup#24
simenandre merged 1 commit into
mainfrom
refactor-fonts

Conversation

@simenandre
Copy link
Copy Markdown
Contributor

@simenandre simenandre commented Jan 27, 2023

This refactors the way fonts are handled. Instead of using Google CDN to load fonts, we host 'em ourselves.

Benefits are …

  • Self-hosting brings significant performance gains as loading fonts from hosted services, such as Google Fonts, lead to an extra (render blocking) network request. To provide perspective, for simple websites it has been seen to double visual load times. Benchmarks can be found here and here.

  • Fonts remain version locked. Google often pushes updates to their fonts without notice, which may interfere with your live production projects. Manage your fonts like any other NPM dependency.

  • Commit to privacy. Google does track the usage of their fonts and for those who are extremely privacy concerned, self-hosting is an alternative.

  • Your fonts load offline. On top of benefiting PWAs, often there may be situations, like working in an airplane or train, leaving you stranded without access to your online hosted fonts. Have the ability to keep working under any circumstance.

@simenandre simenandre requested a review from braaar January 27, 2023 15:55
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
velt-website-chakra ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 27, 2023 at 3:57PM (UTC)

@simenandre simenandre self-assigned this Jan 27, 2023
@simenandre simenandre merged commit 1464d35 into main Jan 27, 2023
@simenandre simenandre deleted the refactor-fonts branch January 27, 2023 16:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant