title: Will setInterval cause browsers to hang?
body: <p>A couple years ago I was warned against using <code>setInterval</code> for long periods of time as it supposedly would cause the browser to hang if the called function ran longer than the designated interval, and would then not be able to catch up:</p>
  
  <pre><code>setInterval( function(){
    foo = 'bar_' + i++;
  }, 1 );
  </code></pre>
  
  <p>Now, I'm aware that adding lots of code in a loop could cause the browser to hang <em>anyway</em>, and that blocking code like <code>alert</code>, <code>prompt</code>, and <code>confirm</code> will stop the code in it's tracks, but is there any good reason to avoid <code>setInterval</code>?</p>
  
  <p>Note: I am aware of how to do recursive <code>setTimeout</code> calls (as that's what I've been using), this question is my trying to figure out if it's still worth using them, or whether <code>setInterval</code> can be used safely.</p>