From 7b31c3a643bed858715afdf3785b21a103c23981 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sun, 2 Jun 2024 22:20:48 +0800 Subject: [PATCH] Preload fonts and redirect script --- src/_includes/global/baselayout.njk | 6 +++--- src/_includes/misc/base.njk | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_includes/global/baselayout.njk b/src/_includes/global/baselayout.njk index df2af76c..d0b207c2 100644 --- a/src/_includes/global/baselayout.njk +++ b/src/_includes/global/baselayout.njk @@ -16,8 +16,8 @@ {% block customCSS %}{% endblock %} {# Fonts #} - - + + {# Font Awesome #} @@ -33,7 +33,7 @@ {% endblock %} {# JavaScript #} - + diff --git a/src/_includes/misc/base.njk b/src/_includes/misc/base.njk index 8377e42f..9bc752c2 100644 --- a/src/_includes/misc/base.njk +++ b/src/_includes/misc/base.njk @@ -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">