From fdc13ea32ddba2fcc1863d0edefa057fc88dd512 Mon Sep 17 00:00:00 2001 From: neborke <43754649+neborke@users.noreply.github.com> Date: Mon, 8 Oct 2018 19:12:21 +0200 Subject: [PATCH] Adding processSectionDelay to Hub (#29443) * Adding processSectionDelay to Hub * adding test for added parameter --- types/mathjax/index.d.ts | 4 ++++ types/mathjax/mathjax-tests.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/types/mathjax/index.d.ts b/types/mathjax/index.d.ts index aaf4a6109c..9e3c94f418 100644 --- a/types/mathjax/index.d.ts +++ b/types/mathjax/index.d.ts @@ -193,6 +193,10 @@ declare namespace MathJax { * below. The options and their default values are given in the Core Options reference page. */ config?: Config; + /*The pause (in milliseconds) between input and output phases of MathJax’s processing. Set this to 0 to avoid + * jitter when updating output frequently (e.g., in a live preview environment). + */ + processSectionDelay?: number; /*The minimum time (in milliseconds) between updates of the “Processing Math” message. After this amount of time * has passed, and after the next equation has finished being processed, MathJax will stop processing momentarily * so that the update message can be displayed, and so that the browser can handle user interaction. diff --git a/types/mathjax/mathjax-tests.ts b/types/mathjax/mathjax-tests.ts index 755e3bc4bd..d044fafaec 100644 --- a/types/mathjax/mathjax-tests.ts +++ b/types/mathjax/mathjax-tests.ts @@ -65,3 +65,5 @@ MathJax.Hub.Config({ useGlobalCache: true } }) + +MathJax.Hub.processSectionDelay = 5;