Skip to content

Commit 0815383

Browse files
committed
preload font
1 parent f3f2142 commit 0815383

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

demo/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313

1414
<link rel="preconnect" href="https://fonts.googleapis.com">
1515
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
16-
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
16+
<link
17+
rel="preload" as="style"
18+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap"
19+
onload="this.onload=null; this.rel='stylesheet';">
1720
</head>
1821
<body class="layout">
1922
<main class="layout__main">

0 commit comments

Comments
 (0)