#ASKTHEINDUSTRY 14: What can I do to lower my JavaScript parse times today?

This one is incredibly simple, yet not quite easy to do.

Here are my 5 strategies:

  1. Ship less JavaScript
  2. Use less transpiled code
  3. Split your code in separate bundles
  4. Enable a tree shaking and dead-code elimination build step, if you’re bringing in a lot of dependencies
  5. If using a modern framework, see if Ahead of Time compilation is available (AoT)

That’s it.


This piece is part of the #ASKTHEINDUSTRY project, a series of daily conversations with the Web Dev industry. You ask, I’ll answer, or find someone who can.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.