diff --git a/common/header.html b/common/header.html
index 26a82ff..aa4816d 100644
--- a/common/header.html
+++ b/common/header.html
@@ -224,7 +224,7 @@ I18n.translations[I18n.currentLocale()].js.composer.contains_dtoc = I18n.t(
});
})(() => {});
$.fn.dtoc = $elem => {
- run.next(() => {
+ run.scheduleOnce("sync", () => {
if ($elem.hasClass("d-editor-preview")) return;
if (!$elem.parents("article#post_1").length) return;
const dToc = $elem.find(`[data-theme-toc="true"]`);