Skip to content

Commit

Permalink
feat(typography): use dns-prefetch and preconnect to improve font loa…
Browse files Browse the repository at this point in the history
…d time
  • Loading branch information
talha131 committed Feb 3, 2020
1 parent 1d62905 commit e4bd582
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=PT+Mono|PT+Sans|PT+Serif|PT+Serif+Caption&display=swap" rel="stylesheet">
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>

{% if CLAIM_GOOGLE %}
{% include '_includes/claim_google.html' with context %}
{% endif %}
Expand Down

0 comments on commit e4bd582

Please sign in to comment.