Skip to content

refactor(ui): defer specialized frontend chunks#300

Merged
alexk-dev merged 1 commit intomainfrom
perf/frontend-chunks-20260416
Apr 16, 2026
Merged

refactor(ui): defer specialized frontend chunks#300
alexk-dev merged 1 commit intomainfrom
perf/frontend-chunks-20260416

Conversation

@alexk-dev
Copy link
Copy Markdown
Owner

@alexk-dev alexk-dev commented Apr 16, 2026

Summary

This PR optimizes dashboard loading by keeping specialized frontend code out of the initial preload path.

  • Splits CodeMirror, IDE tree, markdown, and charts dependencies into targeted Vite chunks instead of the generic startup vendor bundle.
  • Lazy-loads the IDE code editor only when an editable file is opened, while warming the IDE/editor/analytics chunks during idle time after the authenticated dashboard shell paints.
  • Loads CodeMirror language support by file extension instead of bundling the full language registry into the editor entry.
  • Moves IDE-specific SCSS out of the main dashboard CSS and removes the unused @uiw/codemirror-extensions-langs dependency in favor of explicit CodeMirror language packages.

The production build now keeps the initial vendor chunk around 113 KB gzip, down from about 748 KB gzip in the baseline build. The editor core is deferred to about 139 KB gzip, and individual language parsers are loaded on demand.

@alexk-dev alexk-dev changed the title [codex] Defer specialized frontend chunks refactor(ui): defer specialized frontend chunks Apr 16, 2026
@alexk-dev alexk-dev marked this pull request as ready for review April 16, 2026 21:26
@sonarqubecloud
Copy link
Copy Markdown

@alexk-dev alexk-dev merged commit a53d7ec into main Apr 16, 2026
21 of 23 checks passed
@alexk-dev alexk-dev deleted the perf/frontend-chunks-20260416 branch April 16, 2026 21: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