Skip to content

Commit 0affb70

Browse files
committed
Revert "simplify google font link"
This reverts commit a56314d.
1 parent fedc2b1 commit 0affb70

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎_layouts/default.html‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
{%- seo -%}
8-
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Gentium+Plus&family=Noto+Serif+TC&family=Noto+Serif+JP&family=Noto+Color+Emoji&family=Noto+Serif+Thai" />
8+
<!-- The Google Font async wizardry below is courtesy of: https://csswizardry.com/2020/05/the-fastest-google-fonts/ -->
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10+
{%- assign gfont = "https://fonts.googleapis.com/css2?family=Gentium+Plus&family=Noto+Serif+TC&family=Noto+Serif+JP&family=Noto+Color+Emoji&family=Noto+Serif+Thai&display=swap" -%}
11+
<link rel="preload" as="style" href="{{ gfont }}" />
12+
<link rel="stylesheet" href="{{ gfont }}" media="print" onload="this.media='all'" />
13+
<noscript>
14+
<link rel="stylesheet" href="{{ gfont }}" />
15+
</noscript>
916
<link rel="stylesheet" href="/assets/css/{%- if jekyll.environment == 'production' and site.usepurgedcss -%}purged-{%- endif -%}main.css?u={{ site.data.cssCacheToken }}">
1017
{% for cc in page.custom_css %}
1118
<link rel="stylesheet" href="/assets/css/{{cc}}.css?u={{ site.data.cssCacheToken }}">{% endfor %}

0 commit comments

Comments
 (0)