Skip to content

Commit 8259eac

Browse files
committed
website: async load font
1 parent 2b8c717 commit 8259eac

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

website/index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@
1313
/>
1414
<link rel="icon" type="image/png" href="/favicon.png" />
1515

16-
<!-- Google Fonts - JetBrains Mono -->
16+
<!-- Google Fonts - JetBrains Mono (async loading) -->
1717
<link rel="preconnect" href="https://fonts.googleapis.com" />
1818
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1919
<link
20-
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap"
21-
rel="stylesheet"
20+
rel="preload"
21+
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap"
22+
as="style"
23+
onload="this.onload=null;this.rel='stylesheet'"
2224
/>
25+
<noscript>
26+
<link
27+
rel="stylesheet"
28+
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap"
29+
/>
30+
</noscript>
2331

2432
<!-- Tailwind CSS CDN -->
2533
<script src="https://cdn.tailwindcss.com"></script>

0 commit comments

Comments
 (0)