Home

Issue: 1653

ssr loading other pages' js

[issue link]

Why ssr loading other pages’ js?

For example:

  1. I have aaa/aaa.vue besides index.vue.
  2. npm run build and npm start.
  3. Visit localhost:3000 and see the index page loads aaa.5533ed4181712d0a1331.js.

Can anyone help me with these questions?

  1. Why should it load other pages’ js?
  2. Will it make many request when there are many pages?
  3. How to stop it from loading these js?

Thank you.

This question is available on Nuxt.js community (#c1478)