From ec22fd50fb32fa9cddbead0e408187bb5e8632b0 Mon Sep 17 00:00:00 2001
From: HidegonSan <68275072+HidegonSan@users.noreply.github.com>
Date: Tue, 28 Nov 2023 21:27:24 +0900
Subject: [PATCH] optimize js loading order
---
layouts/partials/head/katex.html | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/layouts/partials/head/katex.html b/layouts/partials/head/katex.html
index 5667bdc..c10795a 100644
--- a/layouts/partials/head/katex.html
+++ b/layouts/partials/head/katex.html
@@ -24,6 +24,18 @@
>
{{- end -}}
+ {{- if .Params.mhchem -}}
+ {{- with (slice $katex_license_js (resources.Get "js/katex/contrib/mhchem.min.js")) | resources.Concat "assets/js/katex/contrib/mhchem.min.js" | fingerprint -}}
+
+ {{- end -}}
+ {{- end -}}
+
{{- with (slice $katex_license_js (resources.Get "js/katex/contrib/auto-render.min.js")) | resources.Concat "assets/js/katex/contrib/auto-render.min.js" | fingerprint -}}
{{- end -}}
- {{- if .Params.mhchem -}}
- {{- with (slice $katex_license_js (resources.Get "js/katex/contrib/mhchem.min.js")) | resources.Concat "assets/js/katex/contrib/mhchem.min.js" | fingerprint -}}
-
- {{- end -}}
- {{- end -}}
-