Interesting. The sample code includes this bit:<p><pre><code>      var raf = requestAnimationFrame || mozRequestAnimationFrame ||
          webkitRequestAnimationFrame || msRequestAnimationFrame;
      if (raf) raf(cb);
      else window.addEventListener(&#x27;load&#x27;, cb);
</code></pre>
I&#x27;ve never thought to use requestAnimationFrame like that. When exactly does it fire? Is that the preferred callback these days for loading code after the page is &quot;done&quot; in some fashion? I&#x27;ve gotten used to using jQuery&#x27;s `$(document).ready(..)` which as far as I know uses DOMContentLoaded or window.onload behind the scenes. When does the first animation frame happen in relation to those callbacks?