chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
21 stars 13 forks source link

Use webpack code splitting for smaller bundles #11

Open tahini opened 4 years ago

tahini commented 4 years ago

The transition .js bundle downloaded by the clients is 56MB in development mode and 13MB in production mode. We could make smaller bundles, fetched on demand, for more performance in the UI.

See https://webpack.js.org/guides/code-splitting/

tahini commented 4 years ago

Actually, 23M of the bundle (in dev mode) is osc4ar data that is not required. And another 23MB is from the node_modules dependencies. We can do better! Even without requiring code splitting just yet.