Comment Comment by devhammed Why @taf2 ? setTimeout is asynchronous, code after it will be executed before the function...requestAnimationFrame is for animations. parent devhammed 8 years ago