Adding processSectionDelay to Hub (#29443)

* Adding processSectionDelay to Hub

* adding test for added parameter
This commit is contained in:
neborke 2018-10-08 19:12:21 +02:00 committed by Andy
parent 71a3debca4
commit fdc13ea32d
2 changed files with 6 additions and 0 deletions

View File

@ -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 MathJaxs 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.

View File

@ -65,3 +65,5 @@ MathJax.Hub.Config({
useGlobalCache: true
}
})
MathJax.Hub.processSectionDelay = 5;