Static GitHub Issues

[1653] ssr loading other pages' js

prev: trigger middleware at first time?
next: css flash problem

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.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1478">#c1478</a>)</em></sub></div>