title: How to Error handle the requestAnimationFrame function
body: <p>Looking for a way to check for any errors in the animate() function. If there are any errors that happen in the animate() function my browser crashes and my computer heats up.</p>
  <p>I tried to have the code in a try/catch handler but this doesn't work</p>
  <pre><code>animate(){
      this.renderer.render(this.scene, this.camera);
  
      try {
         // functions that update scene
      } catch (error) {
          gsap.ticker.remove(() =&gt; this.animate());
          console.error(error);
      }
  }
  </code></pre>
  <p><a href="https://codepen.io/John_Joe_Parrott/pen/poEyeMw" rel="nofollow noreferrer">Codepen Example</a></p>
  <p>Any suggestions how to correctly error handle with a 'requestAnimationFrame'/gsap.tick loop?</p>