Skip to content

Commit

Permalink
[refs rachelandrew#16] Remove @imported CSS
Browse files Browse the repository at this point in the history
The @import directive creates a very synchronous, sequential way of
downloading CSS, completely removing our ability to parallelise. By
breaking our CSS out into two separate link elements in the HTML, we can
begin to download the files completely side-by-side.
  • Loading branch information
csswizardry committed Mar 6, 2018
1 parent b50047e commit 2eb1cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<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="stylesheet" href="/css/common.css" />

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic" />
<link rel="stylesheet" href="/css/common.css" />
</head>
1 change: 0 additions & 1 deletion css/common.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@charset "UTF-8";
/*! Gutenberg reset — adapted from Normalize */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic);
html {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
Expand Down

0 comments on commit 2eb1cb6

Please sign in to comment.