Code splitting causes PSI drop with 9.2+ #14940
Unanswered
mintyfloss
asked this question in
Help
Replies: 1 comment
-
Here is more info on the new code splitting techniques: https://nextjs.org/blog/next-9-2#improved-code-splitting-strategy And additionally here is the webpack splitChunks config: next.js/packages/next/build/webpack-config.ts Lines 373 to 457 in 38bd1a0 Currently there is no configuration options for code splitting exposed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
Is your feature request related to a problem? Please describe.
We're currently pinned to version 9.1.7 because upgrading to a more recent version causes our PSI to drop significantly. Here are the screenshots of the Lighthouse result.
Describe the solution you'd like
I'm guessing that in version 9.4.4, PSI is suffering because it's loading an additional 15 JS files. Is there a way to customize code-splitting? We have 12 different pages on our site, but most of our users rarely navigate between pages. At most, users will go to 2 pages and leave the site.
I'm also curious how the common chunk is created. We include the
react-ga
component in_app.js
, so I expect the code for it will be incommon
. However, I see a separate chunk created for it.Describe alternatives you've considered
I currently can't think of another reason why our PSI score will suffer. There was no code change besides updating to Next to 9.4.4.
I also posted this same issue in this thread #11120 (comment).
Beta Was this translation helpful? Give feedback.
All reactions