title: How to go faster than a short setTimeout in javascript?
body: <p>How to make a script repeat it self faster than a setTimeout allows but still not as fast as possible?</p>
  
  <p>Check this <strong><a href="http://jsfiddle.net/jdjKe/" rel="nofollow">demo</a></strong> for 2 examples.
  (I post the demo code under also)</p>
  
  <pre><code>var x = 0;
  var divEl = document.getElementById('counter');
  var divEl2 = document.getElementById('counter2');
  
  document.getElementById('gosettimeout').addEventListener('click', go, false);
  document.getElementById('gotoofast').addEventListener('click', go2, false);
  
  function go() {
      x++;
      divEl.innerHTML = x;
      if (x &gt; 100) {
          return false;
      }
      setTimeout(function () {
          go();
      }, 0);
  }
  
  function go2() {
      x++;
      divEl2.innerHTML = x;
      if (x &gt; 100) {
          return false;
      }
      go2();
  
  }
  </code></pre>