grgr.me

latest commits to https://grgr.me/
Log | Files | Refs

commit c2f6b2db8a248f0e7b907c9a7039ef7c9b6db9f3
parent 464eb0e4c801a29d1cf9107d7a78fc9a17569b2a
Author: corndog <cauchyn@firemail.cc>
Date:   Wed, 15 May 2019 21:03:28 -0700

Try pre-fetching fonts. May revert.

Does it positively affect network loading times?
Will it break anything? Let's find out!

Charter, Charter Italic and Cooper Hewitt Book

Diffstat:
Msite.tmpl | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/site.tmpl b/site.tmpl @@ -4,6 +4,9 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{{ if not (.Is "index.html") }}{{ with .Title }}{{ . }} | {{ end }}{{ end }}{{ .Site.Other.Title }}</title> + <link rel="preload" as="font" href="{{ .Rel "static/charter/charter_regular.woff" }}"> + <link rel="preload" as="font" href="{{ .Rel "static/charter/charter_italic.woff" }}"> + <link rel="preload" as="font" href="{{ .Rel "static/cooperhewitt/CooperHewitt-Book.woff" }}"> <link rel="stylesheet" type="text/css" href="{{ .Rel "static/charter.css" }}"> <link rel="stylesheet" type="text/css" href="{{ .Rel "static/cooperhewitt.css" }}"> <link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}">