Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQ] Lazy load routes to reduce initial bundle size #342

Closed
Rllyyy opened this issue Aug 17, 2023 · 2 comments
Closed

[FEATURE REQ] Lazy load routes to reduce initial bundle size #342

Rllyyy opened this issue Aug 17, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Rllyyy
Copy link
Owner

Rllyyy commented Aug 17, 2023

No description provided.

@Rllyyy Rllyyy added the enhancement New feature or request label Aug 17, 2023
@Rllyyy Rllyyy self-assigned this Aug 17, 2023
@Rllyyy
Copy link
Owner Author

Rllyyy commented Aug 17, 2023

Lazy loading less crucial routes has led to a marginal 20 kb reduction in the initial JavaScript transfer from the previous 700 kb total. The most substantial enhancement could come from implementing lazy loading for the Question component, potentially saving about 260 kb. However, the current priority is to maintain seamless user access to the core app functions immediately after the initial load, at least until the website becomes accessible as a PWA.

@Rllyyy
Copy link
Owner Author

Rllyyy commented Aug 17, 2023

Lazy loading modals from react-modal is also not possible as react-modal advices against conditional rendering modals. Reason seems to be related to createPortal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant