From 32e70efc95a3643680bd58fca7b79f7ea86e0350 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 13 Nov 2023 11:26:06 -0500 Subject: [PATCH] Proper handling of typesetPromise in defaultPageReady. (mathjax/MathJax#3130) --- ts/components/startup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/startup.ts b/ts/components/startup.ts index 653e4bd57..7ceae5ea4 100644 --- a/ts/components/startup.ts +++ b/ts/components/startup.ts @@ -301,7 +301,7 @@ export namespace Startup { return (CONFIG.loadAllFontFiles && (output as COMMONJAX).font ? (output as COMMONJAX).font.loadDynamicFiles() : Promise.resolve()) .then(CONFIG.typeset && MathJax.typesetPromise ? - typesetPromise(CONFIG.elements) : + () => typesetPromise(CONFIG.elements) : Promise.resolve()); }