Relative Content

Tag Archive for javascriptreactjsnext.jsnext.js13

How do I reduce initial load time in nextjs app?

I am building an web app using nextjs on the frontend and laravel for backend (Api) with CMS. For only home page there are 12 apis getting called. The api data fetching takes about on average 2.5s. So when the data is being fetch header and footer with no content is shown and when the data is fetched then the content is rendered. Now how do I instantly render the contents or is there any alternative so that the user can have a better experience when visiting the site? Also every data must be upto date in the frontend as there is a CMS and user expects to instantly see the updated result in the frontend.