Use requestAnimationFrame
Opened this issue · 2 comments
sethladd commented
Use requestAnimationFrame for better animations (smoother, less battery, no tearing, synced drawing)
http://dev.chromium.org/developers/design-documents/requestanimationframe-implementation
http://paulirish.com/2011/requestanimationframe-for-smart-animating/
https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame
http://blog.chromium.org/2011/03/getting-smoother-animated-web-content.html
rsandor commented
Ah good call, thanks for letting me know about that :).
mitar commented
Please don't! jQuery has decided to not use it. Probably the best would be to use jQuery (if jQuery is available) animation ticks.