Better Understanding of Timers in JavaScript: SetTimeout vs RequestAnimationFrame

Moon
JavaScript in Plain English
6 min readOct 30, 2019

--

These days, JavaScript timer functions are widely being used by many projects. They are especially so useful when you want to delay some functions back to after other functions are executed.

In this post, I will talk about each timer functions in JavaScript, and how to or when to use them. Also lastly, I will give you a…

--

--

Frontend React w/ Typescript developer based in S.Korea. Interested in UX/Testing/FE. mgyang95@gmail.com