1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-16 23:07:33 +00:00

fix: defer fonts

This commit is contained in:
Damillora 2021-04-22 19:08:55 +07:00
parent 50e505f31f
commit 8424e13ac4

View File

@ -12,10 +12,15 @@
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin /> <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin />
<link rel="preload" as="style" href="{{asset "built/styles.css"}}" /> <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"}}" /> <link rel="stylesheet" type="text/css" href="{{asset "built/styles.css"}}" />
{{ghost_head}} {{ghost_head}}