vetsmen2017-10-22 01:50:26
vetsmen, 2017-10-22 01:50:26

2 requests in the SPA application?

Good day. The client receives the static files of the application, then 2 ways: I need to get his profile (if he is authorized, of course) and the content of the page. Is it possible to do this with two separate ajax requests? Or should everything be merged into one?
Also, when navigating in the SPA, the profile will remain static (only data changes, information is exchanged via sockets), and the content itself will constantly change.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Aleksei Podgaev, 2017-10-26

of course it is necessary to receive different entities by different requests. this is more correct both from the architectural side and from the point of view of page responsiveness.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question