diff options
author | Vadim Makeev <pepelsbey@gmail.com> | 2022-07-18 10:54:11 +0300 |
---|---|---|
committer | Vadim Makeev <pepelsbey@gmail.com> | 2022-07-18 10:54:11 +0300 |
commit | 1188b12eb64a0a164d6d9a2417e4aa1542bd6e6b (patch) | |
tree | 57f3de00f20d6c8374d3b51db6f48a63e2c86adc /docs/index.html | |
parent | 5404f9064049e23d2a67812440ac3bc4848fcfd9 (diff) | |
download | inter-1188b12eb64a0a164d6d9a2417e4aa1542bd6e6b.tar.xz |
Update web snippet for better performance
Diffstat (limited to 'docs/index.html')
-rw-r--r-- | docs/index.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/index.html b/docs/index.html index 86efa5c58..28ab65822 100644 --- a/docs/index.html +++ b/docs/index.html @@ -87,10 +87,16 @@ endfor the font files. If you're making a web thing, you can use the following CSS. <!-- or get it from <a href="https://fonts.google.com/specimen/Inter">Google Fonts</a>. --> </p> - <pre>@import url('https://rsms.me/inter/inter.css'); -html { font-family: 'Inter', sans-serif; } + <pre><link rel="preconnect" href="https://rsms.me/"> +<link rel="stylesheet" href="https://rsms.me/inter/inter.css"></pre> + <pre>html { + font-family: 'Inter', sans-serif; +} + @supports (font-variation-settings: normal) { - html { font-family: 'Inter var', sans-serif; } + html { + font-family: 'Inter var', sans-serif; + } }</pre> </c> |