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

feat: Reduce application bundle size #425

Merged
merged 10 commits into from
Oct 6, 2024
Merged

feat: Reduce application bundle size #425

merged 10 commits into from
Oct 6, 2024

Conversation

x1unix
Copy link
Owner

@x1unix x1unix commented Oct 6, 2024

Description

Lazy load some app components using <Suspense> to reduce main bundle size.

To avoid big refactoring - only core components moved into separate chunks.
Also Axios was removed as it proven to be not very useful and caused frequent security audit messages.

Those small improvements led to bundle size reduction by 17%.

Before

build/assets/index-F_QI-GM9.css              130.77 kB │ gzip:    22.71 
build/assets/index-BRqK_4MR.js             4,586.40 kB │ gzip: 1,239.06 kB

After

build/assets/Workspace-C4KlUbQ7.js               158.59 kB │ gzip:    50.93 kB
build/assets/PlaygroundContainer-DfuydaVG.js     570.66 kB │ gzip:   148.66 kB
build/assets/index-C9iGD47U.js                 3,816.40 kB │ gzip: 1,026.78 kB

@x1unix x1unix changed the title feat: lazy load workspace feat: Reduce application bundle size Oct 6, 2024
@x1unix x1unix merged commit bb52342 into master Oct 6, 2024
1 check passed
@x1unix x1unix deleted the feat/lazy-loading branch October 6, 2024 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant