Use requestAnimationFrame if it is available; the rest is just cleanup
Use requestAnimationFrame if it is available; the rest is just cleanup
docs
By specifying a dataType we send headers more like a normal request.  May reduce the intermittent 404s.