block by joyrexus 7304146

RAF replacements for setTimeout and setInterval

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.

requestAnimFrame.js

requestInterval.js

requestTimeout.js