Issues With Slow TTFB and TBT
Unanswered
Chum salmon posted this in #help-forum
Chum salmonOP
Hello, I have a website built with Next.js 14.1 that consitently gets extremely slow TTFB and TBT scores. Everything else looks good when testing besides these. Are there any suggestions for how I can improve this issue?
Site: https://test-open.com
Site: https://test-open.com
16 Replies
Chum salmonOP
Chum salmonOP
message just to bump as I'm still struggling to figure out what could be causing this issue
Toyger
do you have any getServerSideProps on homepage?
also maybe you changed
also maybe you changed
dynamic or revalidate for main page?also what is region set for your project? by default it's Washington DC, which can also cause problems
@Chum salmon
@Toyger do you have any getServerSideProps on homepage?
also maybe you changed `dynamic` or `revalidate` for main page?
Chum salmonOP
I'm using the app router for everything. I can actually sent over the github for the project.
https://github.com/Entropy-10/test-open-site (I'm still pretty new to this stuff so the code might not be great)
https://github.com/Entropy-10/test-open-site (I'm still pretty new to this stuff so the code might not be great)
@Chum salmon I'm using the app router for everything. I can actually sent over the github for the project.
https://github.com/Entropy-10/test-open-site (I'm still pretty new to this stuff so the code might not be great)
Toyger
you have this call in status.tsx
as I understood it's calling some remote API
this one definetely block rendering
also as I said you need to check your function region, as on screenshot.
as I understood it's calling some remote API
this one definetely block rendering
also as I said you need to check your function region, as on screenshot.
@Toyger you have this call in status.tsx
as I understood it's calling some remote API
this one definetely block rendering
also as I said you need to check your function region, as on screenshot.
Chum salmonOP
Ah I see, I will fix the issue with the api call blocking and check my region as well.
Thanks for the info! I'll let you know if it improves the issues.
Chum salmonOP
@Toyger ok that seems to have helped a bit. I wrapped the status component in suspense, and switched to sfo1 for my functions region.
@Chum salmon <@536484914221285376> ok that seems to have helped a bit. I wrapped the status component in suspense, and switched to sfo1 for my functions region.
Toyger
hard to say what else can be a problem, you can comment out all home page components, and check numbers on empty page, will it still be delays in network tab of developer tools, then uncomment elemnts one by one to see which one add more time to TTFB.
@Toyger hard to say what else can be a problem, you can comment out all home page components, and check numbers on empty page, will it still be delays in network tab of developer tools, then uncomment elemnts one by one to see which one add more time to TTFB.
Chum salmonOP
I see well I’ll mess around then. Thank you for the help!
Spectacled bear
What tool are you using to benchmark? I'm having similar problems.