The home page needs to call multiple API to get data and render the view. How to optimize it?

For the project of

vue, there are many data modules on the home page. You need to call different API to get the data, and the request will slow down the loading of the first screen. How to optimize it?


ssr or graphgl


make a loading animation


server rendering vue-ssr


Let the backend integrate the interfaces, reduce the number of calling interfaces, and request an interface to get more parameters

.
Menu