Skip to content

[Feature Request]: JS Bundle improvements #779

@StevenWeathers

Description

@StevenWeathers

Description

Currently the vite Javascript bundling is loading all bundles on every initial page load, this is wasteful as users are loading content and features they may never access such as Admin.

Describe the solution you'd like

Look at using Dynamic Imports to load js bundles only when its necessary to render the next page, this is difficult due to how the initial page load versus spa work.

Another option to consider is to break Admin into its own SPA which would at least remove the largest portion of features 99% of users will never access. If this is the approach taken then the new SPA for admin will need to share assets with the Primary SPA.

Describe alternatives you've considered

Potentially breaking into micro-front-ends, though this becomes really complex. Also considered moving some static pages (landing/terms/privacy policy) to back-end rendering though that adds additional complexities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions