Next.js Discord

Discord Forum

Single JS chunk in build

Unanswered
Chortai posted this in #help-forum
Open in Discord
ChortaiOP
I remember there was a way to configure in next.config to only create a single JS chunk instead of code splitting but I can't seem to find anything about it anymore. Does anyone know?

3 Replies

ChortaiOP
Because it generates too many chunks and there's a limit to TCP connections the browser has and this delays load of other important stuff I need to load, so I want to test it
I mean look at this, fast 3g it takes more than 2.5 seconds to bring the page and the bundle
Codesplitting makes the initial response render faster