Use requestAnimationFrame for the loading anim