nextjs slower speed when transition between pages using getServerSideRendering
Unanswered
German yellowjacket posted this in #help-forum
German yellowjacketOP
nextjs says that initial page load time is less when using nextjs but when i used nextjs ,so when i was navigating from one page to anathor the loading time was 3 times than the react , why is it so
7 Replies
German yellowjacketOP
production and development both are slow
does anything extra need to be done to make nextjs transition faster
@German yellowjacket production and development both are slow
development is always slower but if it is also slow in production then:
- you're either fetching a lot of data
- if you're running a db query, the db is somewhere far which is taking too long to resolve
- you're either fetching a lot of data
- if you're running a db query, the db is somewhere far which is taking too long to resolve
German yellowjacketOP
when compared to react, it is 3x slower page transition , only small data is coming from api , it is having pagination so only 10 or 12 documents are coming. it is a ecommerce application so it is using api in home page and product listing pages
@German yellowjacket nextjs says that initial page load time is less when using nextjs but when i used nextjs ,so when i was navigating from one page to anathor the loading time was 3 times than the react , why is it so
getserversideprops is run during request time, so clearly it's slower than the instant navigation that you get from navigating to static routes
you have to optimise your getserversideprops to make it run in as little time as possible