fix: 移除 Google Fonts 外部依赖,改用系统字体栈提升国内加载速度
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
*/
|
*/
|
||||||
:root {
|
:root {
|
||||||
--sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue";
|
--sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue";
|
||||||
--base-font-family: "Lato", var(--sys-font-family), sans-serif;
|
--base-font-family: var(--sys-font-family), sans-serif;
|
||||||
--code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
--code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
{{- /* 移除 Google Fonts 外部依赖,改用系统字体栈,提升国内加载速度 */ -}}
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
{{- /* 原版默认加载 fonts.googleapis.com Lato,导致国内访问慢/阻塞渲染 */ -}}
|
||||||
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap">
|
|
||||||
|
|||||||
Reference in New Issue
Block a user