How To Write Fast, Memory-Efficient JavaScript - Smashing Magazine →

As we've seen, there are many hidden performance gotchas in the world of JavaScript engines, and no silver bullet available to improve performance.

Is there a one true way to write efficient JavaScript? Of course not. As usual, it depends. You can only strive to understand the trade-offs to make informed decisions.

Measure It. Understand it. Fix it. Rinse and repeat.