What to know, what to watch out for to make your apps perform at their best.
Pick your battles. First optimise those parts that give you the biggest improvements.
evalmethod: Whenever possible, avoid the
evalmethod as significant overhead is involved in script evaluation.
withstatements creates additional scope objects that slow variable access and create ambiguities.
for-inloops. Opt to traverse arrays instead, using the
for (var i=0; i < array.length; i++)instead of for-in loops.