When it comes to server-side rendering in Vue, like with Nuxt, the process involves grabbing data using the serverPrefetch()
function and rendering content on the server side. This allows for the request to return data to the user only after the initial download of app.js
.
However, is there a way to initiate the loading of data from the backend immediately upon user request, without waiting for the download of the Vue script and without stalling the request until all data is loaded? In this scenario, the user would be downloading app.js
, while our server simultaneously processes SQL requests and generates a response.