Skip to content

Commit

Permalink
[refs rachelandrew#16] Preconnect external origins
Browse files Browse the repository at this point in the history
There are a few external domains that we hit on every page load; let’s
preemptively open up their connections.
  • Loading branch information
csswizardry committed Mar 6, 2018
1 parent f1ac622 commit da7f9a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

<link rel="preconnect" href="fonts.google.com" />
<link rel="preconnect" href="platform.twitter.com" />
<link rel="dns-prefetch" href="fonts.google.com" />
<link rel="dns-prefetch" href="platform.twitter.com" />

{% include track.html %}

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic" />
Expand Down

0 comments on commit da7f9a1

Please sign in to comment.