NextJS / Vercel is fast and slow #45245
Unanswered
sroussey
asked this question in
Show and tell
Replies: 2 comments 3 replies
-
Another thing, using PageSpeed Insights: https://pagespeed.web.dev/report?url=https%3A%2F%2Fembarc.com%2F It looks like the pre-fetch stuff is returning text but not using gzip!! |
Beta Was this translation helpful? Give feedback.
2 replies
-
I am having the same problem. If it's a case of paying for the paid tier, it should be mentioned somewhere, so we can adapt to it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I converted a hobby site from using pages to the new app directory.
Overall, I like the new setup better. The public pages, which should be almost all server rendered seem fast. The logged in area is more sensitive to network speeds as it uses an api model (will look at changing that!). Which brings me to Vercel...
And looking at a single request:
Seems like it is Vercel that is slow. 1s waiting for a request to start sending kind of slow.
I am on a hobby tier, and the site is a hobby project, so if it is a pricing thing, then that is fine (should mention on pricing page). Maybe the CDN needs priming, and since the site gets no traffic, I am always hitting new urls as far as they are concerned. I hard-reload a few times, but the timings stick between 500ms and 850ms for the most part. Interestingly, this is not the case for HTML files (< 100ms always), so I feel like some prioritization is going on. I could put cloudflare in front, and see how that goes, but I am curious to optimize first.
BTW: I am the one that added the Server Timings stuff on the bottom of the second image when hovering on the waterfall in Google Chrome DevTools. Not much use here as the files are all static!
The site is https://embarc.com.
I wrote it up quickly a year or two ago. The data is a year old as I was relying on someone else for that, but going to write something to pull from the SEC myself, and get some better stock quote info, and it should be workable again. It is interesting hobby since that data will only change (get pulled and processed) once a day, making it mostly static site, and a good example. Hopefully, I will figure out some of the speed stuff along the way, so when the data is good again, all will be right with this hobby project.
Then I'll add VCs and smaller startups...
Beta Was this translation helpful? Give feedback.
All reactions