Skip to content

Commit

Permalink
[refs rachelandrew#16] Move script block above CSS
Browse files Browse the repository at this point in the history
Inline scripts block on CSSOM construction, which means that they won’t
execute until all discovered CSS is downloaded and parsed. This means
that it’s actually better for performance to place these above any CSS
requests so as not to block them.
  • Loading branch information
csswizardry committed Mar 6, 2018
1 parent 2eb1cb6 commit 8dcf1f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<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 }}">

{% include track.html %}

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic" />
<link rel="stylesheet" href="/css/common.css" />
</head>
3 changes: 1 addition & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
{{ content }}
</div>
</main>
{% include footer.html %}
{% include track.html %}
{% include footer.html %}
</body>

</html>

0 comments on commit 8dcf1f4

Please sign in to comment.