-
Konrad Mohrfeldt authored
Up until now the application was crammed in a single JavaScript file once bundled. This forces clients to download 1.1MiB of JavaScript all at once. Vite uses dynamic import statements as split-points for bundles. By using dynamic imports for our routes we can delay the loading of some data to a later point in time when the user actually needs it. We should still try to reduce our overall bundle size.
Konrad Mohrfeldt authoredUp until now the application was crammed in a single JavaScript file once bundled. This forces clients to download 1.1MiB of JavaScript all at once. Vite uses dynamic import statements as split-points for bundles. By using dynamic imports for our routes we can delay the loading of some data to a later point in time when the user actually needs it. We should still try to reduce our overall bundle size.