Use requestanimationframe to optimize your JavaScript

preview_player
Показать описание
It's important to think about what to do when if you are doing lots of updates to the screen. You have probably heard that you should be using requestAnimationFrame when you want to change the screen. But why? I will in this video show the differences between requestAnimationFrame, a while loop, setTimeout, and setIterval.

#requestanimationframe #javascript #optimization
Рекомендации по теме
Комментарии
Автор

This was very informative thanks Christopher

harshithvenkatesh