0

I am currently working on a Next.js application and I am trying to reduce the number of chunks loading on one of the pages, book/[...id]. After inspecting the build-manifest.json I can see the page is loading a number of chunks from the root page. Is there an explanation for this? How can this be reduced?

book chunks from manifest

enter image description here

root chunks from manifest

enter image description here

chunks loaded on page

enter image description here

Sai
  • 801
  • 3
  • 10
  • 27
  • Providing a [mre] would help. However, note that by default `next/link` prefetches the code for the page it links to. Some of those chunks may be due to that. Prefetch can be disabled by passing `prefetch={false}` to the `Link`. – juliomalves Nov 07 '22 at 22:49

0 Answers0