Link loads slowly
Unanswered
Maine Coon posted this in #help-forum
Maine CoonOP
I'm using the pages router and I have a
My understanding is that navigation to this page should happen very fast and that the non-data-related elements it displays should display almost immediately, and that it only then begins to fetch and render the data.
But that is not the case!
When I click the link, it takes a pretty long time where nothing happens and then the whole page shows up perfectly rendered. This happens both in development as well as production.
What is my "error" here?
Link in my sidebar to a dynamic route that uses getStaticProps. On the client, the page fetches a rather large json object using React Query/tRPC. My understanding is that navigation to this page should happen very fast and that the non-data-related elements it displays should display almost immediately, and that it only then begins to fetch and render the data.
But that is not the case!
When I click the link, it takes a pretty long time where nothing happens and then the whole page shows up perfectly rendered. This happens both in development as well as production.
What is my "error" here?