Wat is Javascript Code Splitting


Code splitting is an operation performed by a bundler that splits code into chunks.

You can then load only what is needed for a page to render.

It's also known as route-chunking (where route refers to http route, ie a route is equivalent to a page)


Lazy loading

In large web applications, it is often desirable to split up the app code into multiple JS bundles that can be loaded on-demand.

This function is also called:

  • lazy loading
  • dynamic loading

It helps to increase performance of your application by reducing the size of the initial JS payload that must be fetched.

Multiple Entry points

If you want to create multiple entry points that are target to different users.

Documentation / Reference

Powered by ComboStrap