title: Ajax: does setting timeout always override the browser's timeout?
body: <p>It seems to be possible to set a timeout value when doing an Ajax request in plain javascript. see <a href="https://stackoverflow.com/questions/1018705/how-to-detect-timeout-on-an-ajax-xmlhttprequest-call-in-the-browser">How to detect timeout on an AJAX (XmlHttpRequest) call in the browser?</a></p>
  
  <p>It is also possible when using jQuery's ajax implementation, &amp; other similar frameworks I assume. see <a href="https://stackoverflow.com/questions/5225597/set-timeout-for-ajax-jquery">Set timeout for ajax (jQuery)</a></p>
  
  <p>Browsers seem to have rather vague specification regarding their default timeout. see <a href="https://stackoverflow.com/questions/5798707/browser-timeouts">Browser Timeouts</a></p>
  
  <p>Hence one might "hey, I'm going to set a timeout to my ajax request so all the users will have the same timeout".</p>
  
  <p>But then, the next question follow: would it actually override the browser's timeout in all cases?</p>
  
  <p>When I say "all" cases, I mean for instance, if the browser timeout value is smaller than your ajax request timeout value.</p>
  
  <p>I suspect it does not.</p>
  
  <p>And I also suspect it is best practice to always have a timeout error handler to make sure that whatever happens you can display a relevant message that will save hours of work to your support team, &amp; money to your company. see <a href="https://stackoverflow.com/questions/3543683/determine-if-ajax-error-is-a-timeout/3543713">Determine if $.ajax error is a timeout</a></p>
  
  <p>Thanks in advance</p>