-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve loading performance of assets (#17)
* [refs #16] Remove @imported CSS 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. * [refs #16] Move script block above CSS 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. * [refs #16] Move Twitter widget into head 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. * [refs #16] Preconnect external origins There are a few external domains that we hit on every page load; let’s preemptively open up their connections. * [refs #16] Remove stray Gaug.es code I didn’t realise the include for the Gaug.es analytics was included in so many layouts. Oops! I’ve removed it so that we don’t have it doubled up on so many pages. * [refs #16] Preconnect analytics origins Along with all the other external domains we’ve preconnected, we might as well do the analytics stuff, too.
- Loading branch information
1 parent
b50047e
commit d0fc3c4
Showing
15 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
{{ content }} | ||
|
||
{% include track.html %} | ||
</body> | ||
|
||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
{{ content }} | ||
</div> | ||
{% include footer.html %} | ||
{% include track.html %} | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,6 @@ <h2>GridBugs!</h2> | |
</a></div> | ||
</div> | ||
{% include footer.html %} | ||
{% include track.html %} | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,7 +190,6 @@ <h3>Example code</h3> | |
|
||
</div> | ||
{% include footer.html %} | ||
{% include track.html %} | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ <h1>{{ page.title }}</h1> | |
</div> | ||
</div> | ||
{% include footer.html %} | ||
{% include track.html %} | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
{{ content }} | ||
</div> | ||
{% include footer.html %} | ||
{% include track.html %} | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
{{ content }} | ||
</div> | ||
{% include footer.html %} | ||
{% include track.html %} | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters