Skip to content

Commit e4bd582

Browse files
committed
feat(typography): use dns-prefetch and preconnect to improve font load time
1 parent 1d62905 commit e4bd582

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

templates/base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link href="https://fonts.googleapis.com/css?family=PT+Mono|PT+Sans|PT+Serif|PT+Serif+Caption&display=swap" rel="stylesheet">
8+
<link rel="dns-prefetch" href="//fonts.googleapis.com">
9+
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
10+
711
{% if CLAIM_GOOGLE %}
812
{% include '_includes/claim_google.html' with context %}
913
{% endif %}

0 commit comments

Comments
 (0)