-
-
Notifications
You must be signed in to change notification settings - Fork 117
Description
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.