ink" href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span></span></span></span></span><span class="qm-api-header-tags"></span></div></div></div></div><div class="qm-api-collapsible-content"><div class="qm-api-item-content"><div class="qm-api-description"><div class="qm-html-paragraph">Calls a function every frame until it returns true. This will attempt to use  <code class="qm-code-highlight-code qm-code-font">requestAnimationFrame</code>  , falling b