fix: defer fonts

This commit is contained in:
Damillora 2021-04-22 19:08:55 +07:00
parent 50e505f31f
commit 8424e13ac4
1 changed files with 8 additions and 3 deletions

View File

@ -12,10 +12,15 @@
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin />
<link rel="preload" as="style" href="{{asset "built/styles.css"}}" />
<link rel="preload"
href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap"
as="style"
onload="this.onload=null; this.rel='stylesheet'; document.body.classList.add('fontLoaded')">
<link rel="preload"
href="https://fonts.googleapis.com/icon?family=Material+Icons&display=swap"
as="style"
onload="this.onload=null; this.rel='stylesheet'; document.body.classList.add('fontLoaded')">
<link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/icon?family=Material+Icons&display=block" />
<link rel="stylesheet" type="text/css" href="{{asset "built/styles.css"}}" />
{{ghost_head}}