mirror of
https://github.com/GuerillaStudio/compteur-de-greve.git
synced 2024-12-18 05:41:56 +00:00
Add some preloading links
This commit is contained in:
parent
a9011dbdc4
commit
4bf44d8a90
2 changed files with 5 additions and 0 deletions
|
@ -5,9 +5,12 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
<link rel="stylesheet" href="{{ '/css/style.css' | url }}" />
|
<link rel="stylesheet" href="{{ '/css/style.css' | url }}" />
|
||||||
|
<link rel="preload" href="{{ '/css/style.css' | url }}" as="style" />
|
||||||
<style>[v-cloak] { display: none; }</style>
|
<style>[v-cloak] { display: none; }</style>
|
||||||
<script type="module" src="{{ '/js/script.js' | url }}"></script>
|
<script type="module" src="{{ '/js/script.js' | url }}"></script>
|
||||||
|
<link rel="preload" href="{{ '/js/script.js' | url }}" as="script" />
|
||||||
|
|
||||||
|
{% include 'preload-assets.njk' %}
|
||||||
{% include 'favicons.njk' %}
|
{% include 'favicons.njk' %}
|
||||||
<!-- TODO: REMOVE IN PROD, but safer to have it for now -->
|
<!-- TODO: REMOVE IN PROD, but safer to have it for now -->
|
||||||
<meta name="robots" content="none">
|
<meta name="robots" content="none">
|
||||||
|
|
2
src/_includes/preload-assets.njk
Normal file
2
src/_includes/preload-assets.njk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<link rel="preload" href="/img/hand-left.svg" as="image" type="image/svg+xml" />
|
||||||
|
<link rel="preload" href="/img/hand-right.svg" as="image" type="image/svg+xml" />
|
Loading…
Reference in a new issue