title: What is the range of "script execution" time for dom.max_script_run_time
body: <p>I'm reading Firefox configuration settings for <strong>Dom.max_script_run_time</strong></p>
  
  <p><a href="http://kb.mozillazine.org/Dom.max_script_run_time" rel="nofollow">http://kb.mozillazine.org/Dom.max_script_run_time</a></p>
  
  <p>and default is set to 10 seconds.</p>
  
  <p>My <strong>ajax</strong> timeout is also set to 10 seconds.</p>
  
  <p>I understand ajax timeout count starts from sending xmlhttp request and until the response comes back.</p>
  
  <p>But I'm not sure if Firefox Dom.max_script_run_time includes the time for ajax to wait for response.</p>
  
  <p>For instance:</p>
  
  <pre><code>1. user click on the button on the web page.
  
  2. onclick event is triggered (Dom.max_script_run_time start?)
  
  3. js grag input form data and construct JSON.
  
  4. Using the JSON string, send ajax request.
  
  5. main js thread ends. (Dom.max_script_run_time end here???)
  
  6. xmlHttpRequest object still waiting for the ajax response back from the server.
  
  7. xmlHttpRequest object receives response from the server.
  
  8. Display response text on the web page (part of ajax callback) (Dom.max_script_run_time end here???)
  </code></pre>
  
  <p>Does the Dom.max_script_run_time stops at main js thread end because ajax is another thread? (i.e. script execution is timed per threads?)</p>