From e77d3bffae6127b0c9d457b131519927dd1cb3ad Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 17 Sep 2026 11:22:53 +0200 Subject: [PATCH] perf(frontend): enable vite module preload (#39332) `modulePreload: false` came in with the webpack to vite migration, when chunks were cache-busted through import maps. With content-hashed chunks that reason is gone. Vite's default makes every lazy import preload its whole static dependency tree in parallel instead of the browser discovering it one level per round trip, which renders lazy features like mermaid, the code editor and the activity charts noticeably faster on real-world latency without changing chunks or requests. Assisted-by: Claude Code:claude-opus-5 --- vite.config.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index ecff2975ea5..1ae9a927402 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -254,7 +254,6 @@ export default defineConfig(commonViteOpts({ }, }, build: { - modulePreload: false, manifest: true, rolldownOptions: { input: {