Skip to content

Commit

Permalink
[refs rachelandrew#16] Move Twitter widget into head
Browse files Browse the repository at this point in the history
Seeing as though we’re loading the Twitter widget.js asynchronously, it
doesn’t need to be defined late/JIT. We can move it up to the head to
get it coming over the wire ASAP, but still ensure that it’s not
blocking anything else.
  • Loading branch information
csswizardry committed Mar 6, 2018
1 parent 8dcf1f4 commit f1ac622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic" />
<link rel="stylesheet" href="/css/common.css" />
<script src="//platform.twitter.com/widgets.js" async defer></script>
</head>
2 changes: 1 addition & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="wrapper">

<div class="about">
<div class="follow"><a href="https://twitter.com/rachelandrew" class="twitter-follow-button" data-size="large" data-show-screen-name="true" data-show-count="true">Follow @rachelandrew</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></div>
<div class="follow"><a href="https://twitter.com/rachelandrew" class="twitter-follow-button" data-size="large" data-show-screen-name="true" data-show-count="true">Follow @rachelandrew</a></div>
<h1><a href="/">Grid by Example</a></h1>
<p>Everything you need to learn CSS Grid Layout</p>

Expand Down

0 comments on commit f1ac622

Please sign in to comment.