code: function RestartMathJax() {
    if (timer) {
      MathJax.Hub.queue.queue = [];  // clear MathJax queue, so pending operations won't fire
      MathJax = timer = window = document = html = content = null;
      ReportError("Timeout waiting for MathJax:  restarting");
    }
    serverState = STATE.STOPPED;
    GetWindow();
    ConfigureMathJax();
    StartMathJax();
  }
docs: If MathJax times out, discard the DOM and load a new one (get a fresh MathJax)