...

/

Optimize JavaScript Animations

Optimize JavaScript Animations

JavaScript animations can really impact performance if not done right. We'll learn how to optimize these animations and look at some real world examples in this lesson.

JavaScript often triggers visual changes. Sometimes that happens directly through style manipulations, and sometimes it’s through calculations, like searching or sorting data. Badly-timed or long-running JavaScript is a common cause of performance issues. Look to minimize its impact where you can.

JavaScript performance profiling can be something of an art because the JavaScript you write is nothing like the code that is actually executed. Modern browsers use JIT compilers and all manner of optimizations and tricks to try and give you the fastest possible execution, which substantially changes the dynamics of the code.

With all that said, however, there are some things that you can do to help your apps execute JavaScript well.

Use

...