Skip to content

Commit 9c210fe

Browse files
author
Dr. Awesome Doge
committed
perf: 使用 font-display: optional 減少 LCP
1 parent d1d2f17 commit 9c210fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_includes/head.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<!-- Critical CSS -->
1818
<link rel="stylesheet" href="{{ '/assets/css/app.css' | relative_url }}">
1919

20-
<!-- Fonts - Minimal (single weight, deferred) -->
21-
<link rel="preload" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&family=Noto+Sans+TC:wght@400&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
22-
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&family=Noto+Sans+TC:wght@400&display=swap"></noscript>
20+
<!-- Fonts - Minimal (single weight, optional display) -->
21+
<link rel="preload" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&family=Noto+Sans+TC:wght@400&display=optional" as="style" onload="this.onload=null;this.rel='stylesheet'">
22+
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&family=Noto+Sans+TC:wght@400&display=optional"></noscript>
2323

2424
<!-- Favicon -->
2525
<link rel="shortcut icon" type="image/png" href="{{ '/favicon.png' | relative_url }}">

0 commit comments

Comments
 (0)