the .js file is not connected, but the .css is connected
I am writing a training project: client-server on Node JS vanilla js. using Vite.js
is loaded when the server and client are started index.html which downloads the app.js, which is already loading the rest of the pages. The problem is that the js files connected on other pages are not connected.
That is, if I connect the rest of the js files on the page index.html they work, but not the document.getElementById does not work, since other html has not loaded yet.