From 07db3b64500f7ca36632621f773197e11ed2eca0 Mon Sep 17 00:00:00 2001 From: Brian Morearty Date: Sun, 7 Jan 2024 07:17:22 -0800 Subject: [PATCH] Change readme to recommend loading font from a CDN. The readme previously recommended loading the Inter font from fonts.xyz.style, which sets `max-age=0` in the Cache-Control header. This causes the font to be reloaded from the server on every page hit, which results in an ugly Flash of Unstyled Text (FOUT) in Chrome. By loading the font from the jsdelivr CDN, the FOUT is almost completely eliminated because jsdelivr sets max-age to a high value and allows the browser to cache the font. Note that the new.css demo page at newcss.net uses jsdelivr for the font. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c4bf18c..73675b9 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Add this line to the end of your HTML's ``: If you'd like the font [Inter](https://rsms.me/inter) as well (recommended), add this line as well: ```html - + ``` ### npm