Splitting the JS bundle per page #14860
-
Hello, Issue: Google speed is complaining of unused JS files Background: I have currently around 20 different page types which load different react components. The entire site is generated statically. The bundle generated as "common" is quite big, as more than 50% are common in all the pages. However, a normal user wont go though all the different page types. My question is; Is it possible to generate a bundle per page type? If yes, how can this be achieved? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
timneutkens
Jul 5, 2020
Replies: 1 comment 2 replies
-
Make sure you're using latest Next.js. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
umarmw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure you're using latest Next.js.