From a83e4c1b30fa44ae93af04c0e1654c2db971dc9a Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Wed, 21 Jul 2021 01:35:07 +0800
Subject: [PATCH] Optimize JS loading priority
---
_includes/js-selector.html | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/_includes/js-selector.html b/_includes/js-selector.html
index ff2f295..fad9600 100644
--- a/_includes/js-selector.html
+++ b/_includes/js-selector.html
@@ -2,21 +2,6 @@
JS selector for site.
-->
-
-
-
-
-{% if jekyll.environment == 'production' %}
-
-
-
-
- {% if site.google_analytics.id %}
- {% include google-analytics.html %}
- {% endif %}
-
-{% endif %}
-
{% if page.layout == 'home' or page.layout == 'post' %}
@@ -66,3 +51,18 @@
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
{% endif %}
+
+
+
+
+
+{% if jekyll.environment == 'production' %}
+
+
+
+
+ {% if site.google_analytics.id %}
+ {% include google-analytics.html %}
+ {% endif %}
+
+{% endif %}