JavaScript is fast by itself, but understanding re-paints and re-layouts is critical to avoiding jitter and hanging, especially on mobile
Before understanding how to optimize web applications for efficient rendering in JavaScript, it’s important to understand what is going on in the browser.
Re-layouts, repaints, layers, compositing, CPU, GPU
Read more at GoSquared Engineering