Understand Your Environment
Know How to Spot Red Flags
Excessive usage of memory is often caused by a large pollution of global scope (sometimes a single missing
var can cause an issue, as this will create a global variable), or by memory leaks; watch for large global objects assigned to the
window object, which represents the global context.
Use Your Tools
Write Performance Unit Tests