LibreChat/client
Marco Beretta 4332187ada
⚡ perf: Keep the Mermaid Chunk Off the Boot Path (#16493)
* perf: keep the mermaid chunk off the boot path

The chunk groups capture each module's dependencies with it, and mermaid
depends on Vite's dynamic-import preload helper, the Buffer and process shims,
DOMPurify, uuid and dayjs. Those landed in the 3 MB mermaid chunk, and because
the boot chunks import them, every page preloaded and evaluated mermaid before
its first API request, on the path to the largest contentful paint.

Two higher-priority groups claim them first (runtime-shims and shared-libs), so
mermaid loads only through useMermaid's dynamic import. A new mock scenario
checks that a chat without diagrams never fetches the chunk and that a diagram
reply still loads and renders it.

* test: wait on the reply and the composer instead of network idle

The app keeps connections open, so network idle never arrives.
2026-09-29 18:39:15 +02:00
..
public 🔤 feat: Bundle Inconsolata for the ClickHouse Theme (#16376) 2026-09-25 22:54:14 +02:00
src 🖌️ fix: Apply Controlled Themes Before Paint and Theme Prose Links, Inline Code and QR Backdrops (#16480) 2026-09-29 16:50:00 +02:00
sw
test
babel.config.cjs
check_updates.sh
index.html
jest.config.cjs 🧩 feat: MCP Apps support (#13831) 2026-09-23 21:24:50 -04:00
jest.resolver.cjs
nginx.conf
package.json 🛶 chore: Bring Canary Up to Date With Dev 2026-09-25 14:38:30 +00:00
postcss.config.cjs 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-09-23 13:19:32 -04:00
tailwind.config.cjs 📐 feat: Radius and Font Scales Follow the Theme (#16340) 2026-09-25 11:34:29 +02:00
tsconfig.json
vite.config.ts ⚡ perf: Keep the Mermaid Chunk Off the Boot Path (#16493) 2026-09-29 18:39:15 +02:00