B
B
Boogie19892016-05-28 16:19:23
JavaScript
Boogie1989, 2016-05-28 16:19:23

How to upload data to the client correctly?

Then an idea appeared to write some kind of site on Angular + Express, and a dilemma arose, how best to receive data, get everything once at the first load and fly around the site, or load a little if necessary?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2016-05-28
@gangstarcj

Download to the user what he wants to see, then load the rest in the background to fly)

O
Oleg Shevelev, 2016-05-28
@mantyr

Divide into three parts:
See here for more details:
You can also add a 4th part - this is what you may need because it is hot data (for example, news, a list of friends' activity, and so on)

R
Rou1997, 2016-05-28
@Rou1997

For "some site" this question cannot be answered, depending on which site, what data.

B
Boogie1989, 2016-05-28
@Boogie1989

It will be something like a forum. And the question is, to pull together all topics, rooms and messages at once, or for each page to make its own request to obtain the data necessary only for it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question