Lag When navigating between static pages which nextjs make them dynamic at build time
Answered
mohtashim posted this in #help-forum
Reason is I am using next cookies so all my static pages are converted into dynamic Now When I navigate between the pages there is lag how can I reduce the lag as much as possible
5 Replies
Now When I navigate between the pages there is lag how can I reduce the lag as much as possibleHave you tried using <Suspense> ?
No Can you guide me how should I use Suspense ?
@mohtashim No Can you guide me how should I use Suspense ?
you wrap your async server component with Suspense
Answer
so that the surrounding, non-suspensed components are returned early to the client