You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reload the page to see all the modules, .css files was prefetched. It even loads lodash modules
Describe the bug
Hi team, I'm facing the rate limit issue which cause 403 error on my server. What I discoveried is Nuxt's trying to prefetch all modules, .js, .css files at once on the first time I visit a page.
Do we have a config in nuxt.config.ts to limit the loaded module OR loading module on demand only OR preven prefetching?Instead of fetching all modules every time visiting a page, we only need to load components, css or modules which were used / imported in the current page only
dungonfq
changed the title
Nuxt 3 / Vite load all modules at once while starting page
Nuxt 3 / Vite prefetch all assets & modules while starting page
Jun 3, 2022
Environment
Development & Production
Reproduction
Development:
https://stackblitz.com/edit/github-o1kjbh-8gikuu
Describe the bug
Hi team, I'm facing the rate limit issue which cause 403 error on my server. What I discoveried is Nuxt's trying to prefetch all modules, .js, .css files at once on the first time I visit a page.
Do we have a config in
nuxt.config.ts
to limit the loaded module OR loading module on demand only OR preven prefetching? Instead of fetching all modules every time visiting a page, we only need to load components, css or modules which were used / imported in the current page onlyAdditional context
#13778
Possible solution?
nuxt-contrib/vue-bundle-renderer#30
Logs
No response
The text was updated successfully, but these errors were encountered: