]> git.ipfire.org Git - thirdparty/google/fonts.git/commit
Update content.md with additional preconnect 7870/head
authorNathan Tsai <14931423+chrishappy@users.noreply.github.com>
Mon, 17 Jun 2024 19:11:50 +0000 (12:11 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2024 19:11:50 +0000 (12:11 -0700)
commit62d83c307965c502b4b24a80ae61310f18b113f4
treeb5fd3281a1bd93d1387af8bf965ec39bbf48e9eb
parent4d015b57411aa9dfddb89655670b3f2a2834419e
Update content.md with additional preconnect

When adding new fonts, Google Fonts now suggests adding both of the tags:

```
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
```

for example when adding: Lexend and Alegreya

```
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400..900;1,400..900&family=Lexend:wght@100..900&display=swap" rel="stylesheet">
```
cc-by-sa/knowledge/modules/using_type/lessons/using_web_fonts_from_a_font_delivery_service/content.md