Preload fonts and redirect script

This commit is contained in:
Helen Chong 2024-06-02 22:20:48 +08:00
parent 275f004996
commit 7b31c3a643
2 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@
{% block customCSS %}{% endblock %}
{# Fonts #}
<link rel="stylesheet" href="{{'/assets/fonts/lexend/lexend.css' | url | safe}}">
<link rel="stylesheet" href="{{'/assets/fonts/intel-one-mono/intel-one-mono.css' | url | safe}}">
<link rel="preload" href="{{'/assets/fonts/lexend/lexend.css' | url | safe}}" as="style">
<link rel="preload" href="{{'/assets/fonts/intel-one-mono/intel-one-mono.css' | url | safe}}" as="style">
{# Font Awesome #}
<link href="{{'/assets/fonts/fontawesome/css/fontawesome.css' | url | safe}}" rel="stylesheet" />
@ -33,7 +33,7 @@
{% endblock %}
{# JavaScript #}
<script src="/assets/js/redirect.js"></script>
<script rel="preload" src="/assets/js/redirect.js" as="script"></script>
<script src="/assets/js/details-utils.js" defer></script>
<title>

View File

@ -14,7 +14,7 @@
<link rel="stylesheet" href="{{'/assets/fonts/noto-sans/noto-sans.css' | url | safe}}">
{# JavaScript #}
<script src="/assets/js/redirect.js"></script>
<script rel="preload" src="/assets/js/redirect.js" as="script"></script>
{# Favicon #}
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">