Use requestAnimationFrame in DefaultUI loading