Skip to content

[UI] Optimize bundle#11896

Merged
SchrodingersGat merged 8 commits into
inventree:masterfrom
SchrodingersGat:rollup-tweaks
May 9, 2026
Merged

[UI] Optimize bundle#11896
SchrodingersGat merged 8 commits into
inventree:masterfrom
SchrodingersGat:rollup-tweaks

Conversation

@SchrodingersGat
Copy link
Copy Markdown
Member

@SchrodingersGat SchrodingersGat commented May 8, 2026

Ref: #11865

A different approach to #11865

  • optimizing loading by reducing index bundle size
  • Lazy load certain larger components (which are not needed immediately)

Bundle Comparison

Showing a comparison of the largest bundled items. Here index is the interesting one

Before Optimization

../backend/InvenTree/web/static/web/assets/OrderCalendar-BFmgL6oa.js              262.17 kB │ gzip:  80.15 kB │ map:   985.24 kB
../backend/InvenTree/web/static/web/assets/InvenTreeTable-DGu0sbjg.js             396.41 kB │ gzip: 120.74 kB │ map: 1,632.03 kB
../backend/InvenTree/web/static/web/assets/ThemeContext-CNv6m6Dn.js               404.09 kB │ gzip: 124.33 kB │ map: 2,220.31 kB
../backend/InvenTree/web/static/web/assets/NotesPanel-B6Nb-smJ.js                 438.82 kB │ gzip: 144.24 kB │ map: 1,595.08 kB
../backend/InvenTree/web/static/web/assets/PartDetail-H4j_OSK8.js                 494.34 kB │ gzip: 143.72 kB │ map: 2,417.18 kB
../backend/InvenTree/web/static/web/assets/TemplateTable-GXiNzlFh.js              614.23 kB │ gzip: 214.46 kB │ map: 2,267.26 kB
../backend/InvenTree/web/static/web/assets/index-CXoseHnB.js                      868.98 kB │ gzip: 275.78 kB │ map: 4,278.25 kB

After Optimization

../backend/InvenTree/web/static/web/assets/messages-DG0g6e-Y.js                   161.41 kB │ gzip:  50.32 kB │ map:   196.10 kB
../backend/InvenTree/web/static/web/assets/OrderCalendar-fB0YzXqE.js              262.54 kB │ gzip:  80.30 kB │ map:   985.24 kB
../backend/InvenTree/web/static/web/assets/BarcodeInput-Djdp5Csv.js               347.25 kB │ gzip: 104.51 kB │ map: 1,790.61 kB
../backend/InvenTree/web/static/web/assets/NotesEditor-KbEqXKGV.js                360.81 kB │ gzip: 121.28 kB │ map: 1,344.07 kB
../backend/InvenTree/web/static/web/assets/InvenTreeTable-DMzr1ih5.js             397.58 kB │ gzip: 121.15 kB │ map: 1,632.03 kB
../backend/InvenTree/web/static/web/assets/index-DZf-LshS.js                      453.36 kB │ gzip: 146.80 kB │ map: 2,183.79 kB
../backend/InvenTree/web/static/web/assets/PartDetail-CmklmmB2.js                 495.99 kB │ gzip: 144.42 kB │ map: 2,417.18 kB
../backend/InvenTree/web/static/web/assets/CodeEditor-6yE9dq0D.js                 597.66 kB │ gzip: 208.41 kB │ map: 2,197.96 kB

SchrodingersGat and others added 4 commits May 8, 2026 06:33
- Required for plugins
- Can be separated from the "main.tsx" code

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@SchrodingersGat SchrodingersGat added this to the 1.4.0 milestone May 8, 2026
@SchrodingersGat SchrodingersGat added refactor User Interface Related to the frontend / User Interface labels May 8, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 8, 2026

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit bdac6e2
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/69fe95b675268a000880d54c
😎 Deploy Preview https://deploy-preview-11896--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 93 (🟢 up 1 from production)
Accessibility: 81 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

SchrodingersGat and others added 2 commits May 8, 2026 06:56
Co-authored-by: Copilot <copilot@github.com>
@SchrodingersGat SchrodingersGat merged commit 583c7ad into inventree:master May 9, 2026
29 checks passed
@SchrodingersGat SchrodingersGat deleted the rollup-tweaks branch May 9, 2026 02:44
@SchrodingersGat SchrodingersGat restored the rollup-tweaks branch May 9, 2026 12:35
@SchrodingersGat SchrodingersGat deleted the rollup-tweaks branch May 9, 2026 12:35
SchrodingersGat pushed a commit that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants