Drop in replace functions for setTimeout
and setInterval
that make use of requestAnimationFrame
.
See overview article and Paul Irish’s earlier post.
Courtesty of Joe Lambert
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
More info, resources, and tutorials on web animation best practices here.