Skip to content
paulbartrum edited this page Dec 14, 2015 · 1 revision
  • Use local variables whenever possible - they are much faster than globals. This means you should always use var to declare variables.
  • Avoid the following language features (they tend to disable optimizations):
    • eval
    • arguments
    • with
  • Use strict mode - it is slightly faster.