Does Vue.js always load all the templates on the client side?

0

Recently, I am venturing into the world of vue.js and although I understand all the components and things well, there is something I do not quite understand. When handling all the frontend from the client side, does this mean that all templates are loaded? and if so, having a very large application, does not increase the load time much or does the work for the client become cumbersome? As I read, it is possible to send templates through calls to backend , but this is "not usual". That doubt is generated, if there is any size where it is already said "It is too big" or something like that.

    
asked by SaitoHs 21.12.2017 в 16:42
source

1 answer

0

Yes, you should download all the templates as long as we are talking about a SPA (Single Page Application), since if you have several HTML files you can have several JavaScript files with different Vue applications.

There is no specific time stipulated on when to move to the SSR, and now I will explain why. The SSR (Server-side rendering) is useful when accessing the content is part of the conversion rate . This term can mean many things depending on the business we are targeting, but basically means that if the time it takes to access the content is an intrinsically necessary part to achieve the engagement and without SSR not is being achieved, then we must implement it.

All the logic of the VueJS, when the rendering and therefore the maintenance of the virtual DOM, are on the client's side, will have a greater delay than if we use SSR (since in this methodology, the HTML "rendering" travels as a text string to the client).

I would say that if it is not strictly necessary for the conversion, do not take it into account yet.

    
answered by 03.01.2018 в 06:38