Use requestanimationframe to optimize your JavaScript
YOUR LINK HERE:
http://youtube.com/watch?v=7Lt90zEAqDE
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
#############################
