further optimisations: optimise riki sitting, and put non-critical stylesheets at the end
This commit is contained in:
parent
7b06c7c6e1
commit
be8ae113b7
6 changed files with 27 additions and 18 deletions
|
@ -4,10 +4,8 @@
|
|||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- -->
|
||||
<link rel="preload" href="{{ asset 'font/recursive-title.woff2' }}" as="font" type="font/woff2" crossorigin fetchpriority="high">
|
||||
<link rel="preload" href="{{ asset 'font/recursive-crit.woff2' }}" as="font" type="font/woff2" crossorigin>
|
||||
<!-- -->
|
||||
|
||||
<style>
|
||||
@font-face {
|
||||
|
@ -45,8 +43,6 @@
|
|||
</style>
|
||||
<style>{{{ include_static 'css/base.css' }}}</style>
|
||||
<style>{{{ include_static 'css/critical.css' }}}</style>
|
||||
<link rel="stylesheet" href="{{ asset 'css/noncritical.css' }}">
|
||||
<link rel="stylesheet" href="{{ asset 'css/icons.css' }}">
|
||||
|
||||
{{!--
|
||||
Import maps currently don't support the src="" attribute. Unless we come up with something
|
||||
|
@ -54,14 +50,6 @@ clever to do while browser vendors figure that out, we'll just have to do a cach
|
|||
--}}
|
||||
<script type="importmap">{{{ import_map }}}</script>
|
||||
|
||||
{{#if dev}}
|
||||
<script type="module">
|
||||
import "treehouse/dev/live-reload.js";
|
||||
import "treehouse/dev/picture-upload.js";
|
||||
</script>
|
||||
<link rel="stylesheet" href="{{ asset 'css/dev.css' }}">
|
||||
{{/if}}
|
||||
|
||||
<script>
|
||||
const TREEHOUSE_DEV = {{ dev }};
|
||||
const TREEHOUSE_SITE = `{{ config.site }}`;
|
||||
|
@ -74,9 +62,6 @@ clever to do while browser vendors figure that out, we'll just have to do a cach
|
|||
haku: `{{{ asset 'syntax/haku.json' }}}`,
|
||||
};
|
||||
</script>
|
||||
<script type="module" async>
|
||||
import "treehouse/command-line.js";
|
||||
</script>
|
||||
|
||||
<meta property="og:site_name" content="{{ config.user.title }}">
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue