Skip to content

Commit de49c8f

Browse files
committed
Attempt to improve font loading speed
1 parent fd408ff commit de49c8f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: templates/partials/head.html

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
<!-- 'shrint-to-fit=no' is a post-Safari 9.0 workaround
55
https://stackoverflow.com/questions/33767533/what-does-the-shrink-to-fit-viewport-meta-attribute-do
66
-->
7-
<meta
8-
name="viewport"
9-
content="width=device-width, initial-scale=1.0, shrink-to-fit=no"
10-
/>
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
118

129
<title>Alex Gavin</title>
1310
<link rel="icon" type="image/x-icon" href="{{ get_url(path=config.extra.favicon) }}" />
@@ -17,9 +14,10 @@
1714
<meta name="description" content="Portfolio website" />
1815

1916
<!-- CSS & JS -->
20-
<link rel="stylesheet" href="{{ get_url(path=`main.css`) }}" />
17+
<link rel="preload stylesheet" href="{{ get_url(path=`main.css`) }}" />
2118
<link
2219
href="https://pvinis.github.io/iosevka-webfont/3.4.1/iosevka.css"
23-
rel="stylesheet"
20+
rel="stylesheet preload"
21+
as="font"
2422
/>
2523
</head>

0 commit comments

Comments
 (0)