diff --git a/assets/js/theme.js b/assets/js/theme.js
index 81b9743b..a8b22803 100644
--- a/assets/js/theme.js
+++ b/assets/js/theme.js
@@ -1268,10 +1268,12 @@ class FixIt {
this.initFootnotes();
this.initTooltip();
if (includeToc) {
- this.fixTocScroll();
- this.initToc();
- this.initTocListener();
- this.initTocDialog();
+ window.setTimeout(() => {
+ this.fixTocScroll();
+ this.initToc();
+ this.initTocListener();
+ this.initTocDialog();
+ }, 100);
}
this.initPangu();
this.initMathJax();
@@ -1499,7 +1501,6 @@ class FixIt {
this.initReward();
this.initPostChatUser();
- // [todo] refactor async init toc
window.setTimeout(() => {
this.initComment();
if (!this.config.encryption?.all) {
diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html
index 28c8c717..4b145f05 100644
--- a/layouts/_partials/init/index.html
+++ b/layouts/_partials/init/index.html
@@ -1,4 +1,4 @@
-{{- hugo.Store.Set "version" "v0.4.4-20260306024648-423a7ddb" -}}
+{{- hugo.Store.Set "version" "v0.4.4-20260308095742-fda650ad" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
diff --git a/layouts/_partials/plugin/fixit-encryptor.html b/layouts/_partials/plugin/fixit-encryptor.html
index d09247f8..8aac94b0 100644
--- a/layouts/_partials/plugin/fixit-encryptor.html
+++ b/layouts/_partials/plugin/fixit-encryptor.html
@@ -16,11 +16,11 @@
{{- if not .IsPartial -}}
{{- end -}}
diff --git a/layouts/_partials/single/fixit-decryptor.html b/layouts/_partials/single/fixit-decryptor.html
index a73119c5..025e5f8b 100644
--- a/layouts/_partials/single/fixit-decryptor.html
+++ b/layouts/_partials/single/fixit-decryptor.html
@@ -9,10 +9,10 @@
{{- end -}}