Skip to content

[P2] Code-split heavy PDF and workspace modules to reduce initial bundle cost #19

@nkanf-dev

Description

@nkanf-dev

Summary

Reduce initial bundle size by code-splitting PDF-heavy and workspace-heavy modules.

Why

Production builds already emit chunk-size warnings, which suggests the initial load path is doing more work than necessary.

Current evidence

  • npm run build reports large chunks after minification.
  • PDF rendering and advanced workspace features are not needed for every first paint.

Scope

  • Identify candidate modules for dynamic import (for example: react-pdf, quick flip overlay, workspace-heavy panes).
  • Split code paths without degrading user-perceived responsiveness.
  • Re-test import, reader, and quick flip flows after splitting.

Acceptance criteria

  • Initial bundle cost is reduced measurably.
  • The app still feels responsive when loading deferred modules.
  • Build output no longer triggers avoidable large-chunk warnings, or warnings are clearly justified.

Out of scope

  • Server-side rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions