-
Notifications
You must be signed in to change notification settings - Fork 41
Performance: Route-Level Code Splitting via React.lazy #178
Copy link
Copy link
Open
Labels
assignedIndicates that the issue has been assigned to a contributor who is actively working on it.Indicates that the issue has been assigned to a contributor who is actively working on it.backendBackend developmentBackend developmentenhancementNew feature or requestNew feature or requestfrontendFrontend developmentFrontend developmenttype:backendChanges backend services or server-side logic.Changes backend services or server-side logic.type:featureIntroduces a new feature or enhancement.Introduces a new feature or enhancement.type:frontendChanges frontend or client-side code.Changes frontend or client-side code.
Description
Activity
Metadata
Metadata
Assignees
Labels
assignedIndicates that the issue has been assigned to a contributor who is actively working on it.Indicates that the issue has been assigned to a contributor who is actively working on it.backendBackend developmentBackend developmentenhancementNew feature or requestNew feature or requestfrontendFrontend developmentFrontend developmenttype:backendChanges backend services or server-side logic.Changes backend services or server-side logic.type:featureIntroduces a new feature or enhancement.Introduces a new feature or enhancement.type:frontendChanges frontend or client-side code.Changes frontend or client-side code.
What the issue is & The core problem
The entire application bundle is loaded upfront via Vite, leading to a massive
vendor.jspayload and slow Time-to-Interactive (TTI).Specific files to be changed
src/App.tsxvite.config.tsDetailed proposed solution
Implement
React.lazy()and<Suspense>wrappers around all major route components to enable chunking and lazy-loading of the JavaScript payload.Impact/Effect on the project
Slashes the initial bundle size, drastically improving Lighthouse performance scores.
Benefits to the maintainers/users
Provides a much faster initial load time for users on slower networks.
Assignment Request
Hey maintainers, I would like to work on this issue. Could you please assign it to me and add the
ECSoC26,Level 3, andgood-backendlabels?Program: ECSoC'26