Skip to content

Conversation

@Sumeet213
Copy link

@Sumeet213 Sumeet213 commented Dec 1, 2025

Description:

Addresses #2340

  • Pre-build gzip and brotli compressed assets at build time
  • Serve pre-compressed files directly (no runtime CPU overhead)
  • Split vendor libraries into cacheable chunks

Initial load reduced from ~1.07MB to ~850KB (brotli).


Summary by cubic

Pre-built gzip and Brotli assets and vendor code splitting to reduce initial load and remove runtime compression overhead, addressing #2340. Initial load drops from ~1.07MB to ~850KB.

  • New Features

    • Backend serves .br/.gz files when supported (sets Content-Encoding and Vary).
    • Build-time compression via vite-plugin-compression for gzip and Brotli (keeps original files).
    • Manual code splitting for vendor chunks (react, UI, markdown, utils) to improve caching.
  • Dependencies

    • Added vite-plugin-compression ^0.5.1.

Written for commit 7554526. Summary will update automatically on new commits.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. frontend Pertains to the frontend. labels Dec 1, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Pertains to the frontend. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant