D
D
Danil Sitdikov2017-10-08 14:40:15
Vue.js
Danil Sitdikov, 2017-10-08 14:40:15

VUE.JS Is it necessary?

Not long ago I began to study vue.js and it seems to be going on, but questions have arisen:
1. What is better when the server (on php) compiles html and sends it to the client, or when the server (php) sends an array of data and the js framework already displays this very menu. Well, not only the menu. The main criteria are site loading speed and server load reduction.
2. Does it make sense to make an online store using vue.js on the client and cs-card on the server?
py.sy. I apologize if the questions are stupid)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Y
yurygolikov, 2017-10-08
@Quadrad_S

To the questions "What is better?", "Does it make sense?" can only be answered in context and then subjectively. Store insufficient context, store store strife.
- Definitely the future of SPA applications. With SPA, you can also give html - SSR.
- SPA takes longer, because in fact you are doing 2 applications (client and server).
- With SPA, the load on the server and the page timeout are most of all on the first load of the application. Further conclusions can be drawn depending on the specific situation.

R
romanovilya, 2017-10-08
@romanovilya

Until PS (Search Engines) learn to properly index sites with templating on the client, the future of SPA is not as rosy as many would like it to be, yy
)

X
xmoonlight, 2017-10-09
@xmoonlight

As a unified approach to designing SPA (search engines and browsers), I will add information about my mini-framework includeHTML , which allows you to just:
1. Make a template that can be launched and run completely locally (without a server!), Loading the necessary page blocks dynamically .
2. It is very easy to create SPAs on it, containing various information blocks that can be sent separately from the server, and for PS (search engines) - stitched into a single HTML page on the server side.
3. Quickly understand how to use.
In terms of a fast template engine for JSON on the client side, I can advise REX Tiny Templater

A
ajaxtelamonid, 2017-10-09
@ajaxtelamonid

1. If site loading speed is a priority, php generation is better. If the load on the server is reduced - display on js. But the difference here and there is so small that it cannot be taken seriously.
2. cs-card is a ready store? This is most likely impossible to do, there is most likely a front, not vue.js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question