Hi,
my site: https://vermillion-nasturtium-f7ddc0.netlify.app/ is a nextjs app all the pages are static, I don’t have any data fetching or SSR.
The page load time after initial response time is fast as is navigation within the site. However, it seems that when the site hasn’t been loaded for a while there is a slow server response. I experience this with Vercel but that was with SSR and quite a bit of data fetching, I’m not sure what causes this slow response.
Once I load the website on the phone/laptop then subsequent loads are quick, but just that first load takes a couple seconds.
Here is a screenshot from Lighthouse showing that slow server response and fast performance otherwise:
1 Like
Exactly the same happens to my Next 14 website: https://www.almostlogical.rs/. Initial load is slow, subsequent loads are fast. It appears to me that site somehow sleeps after few minutes.
I ran into that with a previous app but I thought that would not apply with a static web app? Does that mean all apps hosted on Netlify will have this?
If it’s generating a response at runtime via a lambda then it’s not static.
No, only the ones that aren’t static.
My website www.almostlogical.rs is a really simple static page actually. And i still get slow server response time. My contact form uses resend email and that’s the only lambda my website have. But it’s just a modal that opens up on button click. For example, my other functionality-wise identical website autoskola-akademija.rs on Vercel have no problems at all. What am i doing wrong?
You’re using Next.js. No Next.js site is a static site anymore, so you’re also likely suffering from the link I presented above.
“No Next.js site is a static site anymore”. Not sure about this. Take a look at my local build info:
Okay, i’ll try the static export then. Thanks.