Pre-fetching webpack chunks #14562
-
When clicking a specific button on a specific page, I see that some Webpack chunks are downloaded. Next time I use the button, the chunks are getting dowloaded again as they already were. I have little knowledge of how webpack works, but even less about how NextJS uses webpack internally. My question is: is a simple way to pre-download those chunks? The 3 chunks I would like to pre-fetch: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
What does the button do? (Does it change the page route? If so, you could check out Route prefetching in Next.js) |
Beta Was this translation helpful? Give feedback.
-
Are you sure you don't have "Disable cache" checked in your browser's network devtools? |
Beta Was this translation helpful? Give feedback.
-
Turns out it wasn't coming from my code, but from the api call I was making. Closing this issue. |
Beta Was this translation helpful? Give feedback.
Turns out it wasn't coming from my code, but from the api call I was making. Closing this issue.