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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38777-2b892.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38777-2b892.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?