chore: update project
This commit is contained in:
+5
-1
@@ -6,7 +6,11 @@
|
||||
<title>砚 · Dart 测验</title>
|
||||
<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=Noto+Serif+SC:wght@500;700;900&family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
<!-- 非阻塞加载:先用 media="print" 让浏览器不把它当渲染阻塞资源,下载完成后再切回 all。
|
||||
国内常连不上 fonts.googleapis.com,若按默认方式引入会把首屏一直卡到请求超时;
|
||||
这样写则首屏立即绘制,先用 theme.css 里的本地回退字体(宋体/苹方/雅黑),字体到了再换上。 -->
|
||||
<link rel="stylesheet" media="print" onload="this.media='all'"
|
||||
href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700;900&family=Noto+Sans+SC:wght@400;500;700&display=swap">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user