title: Check Javascript Condition Every Frame
body: <p>Pretty much, my question is simple, and I did search for a similar question before posting this. I would like to know how to make Javascript code repeatedly execute while the page is open, rather than the code running once and being done or only responding to event handlers. I pretty much want the Javascript equivilant of:</p>
  
  <pre><code>$(document).ready(function() {
  
  });
  </code></pre>
  
  <p>But I do not want to use Jquery because it is less efficient. I want to check an === condition every single frame.</p>