Answer the question
In order to leave comments, you need to log in
Vue client side and prerendering, how to link together?
As a matter of fact, all essence of a question in a topic.
Small details - the server can give both generated html and raw data in json format.
The client is built on vue.js
The task is not so much to get an isomorphic application, but to pre-render the page to improve seo.
There is even a plugin for webpack, but that's not the point.
I don’t understand in any way, if, for example, the client code was written using jquery, then everything is simple - the server spat out html, the scripts loaded, attached to the dom and then perform the necessary requests to the api to receive data with subsequent rendering on certain events.
The vue ideology is fundamentally different.
Vue will not have its own model, its own template, and bind the house-tree to the one built on the basis of the html server response. That's not what he's made for.
Those. the question is even in what it turns out, the html received during the first request to the server will not take any further part, but will simply be redrawn? And it turns out to still perform an additional request to obtain data ... and so on? And the page drawn on the server is exclusively for search robots.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question