chore: update theme.js init
This commit is contained in:
2
assets/js/theme.min.js
vendored
2
assets/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -697,6 +697,7 @@ class Theme {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
try {
|
||||||
this.initSVGIcon();
|
this.initSVGIcon();
|
||||||
this.initTwemoji();
|
this.initTwemoji();
|
||||||
this.initMenuMobile();
|
this.initMenuMobile();
|
||||||
@@ -707,8 +708,6 @@ class Theme {
|
|||||||
this.initHighlight();
|
this.initHighlight();
|
||||||
this.initTable();
|
this.initTable();
|
||||||
this.initHeaderLink();
|
this.initHeaderLink();
|
||||||
this.initToc();
|
|
||||||
this.initComment();
|
|
||||||
this.initSmoothScroll();
|
this.initSmoothScroll();
|
||||||
this.initMath();
|
this.initMath();
|
||||||
this.initMermaid();
|
this.initMermaid();
|
||||||
@@ -716,10 +715,18 @@ class Theme {
|
|||||||
this.initTypeit();
|
this.initTypeit();
|
||||||
this.initMapbox();
|
this.initMapbox();
|
||||||
this.initCookieconsent();
|
this.initCookieconsent();
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
window.setTimeout(() => {
|
||||||
|
this.initToc();
|
||||||
|
this.initComment();
|
||||||
|
|
||||||
this.onScroll();
|
this.onScroll();
|
||||||
this.onResize();
|
this.onResize();
|
||||||
this.onClickMask();
|
this.onClickMask();
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user