28 Apr 2015 by Sergey Alexandrovich Kryukov
"Pause in the function" is possible (some blocking call, whatever it is), but it won't help you. Such "pause" is just a wrong idea.Animation is the sequence of the calls to window.requestAnimationFrame, optionally, with some data needed for frame rendering and, typically, time stamp to be...