Skip to content
Snippets Groups Projects
  • Konrad Mohrfeldt's avatar
    2516625c
    feat: use pages as bundle split-points · 2516625c
    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.
    2516625c
    History
    feat: use pages as bundle split-points
    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.