Next.js Discord

Discord Forum

Initial load very slow

Unanswered
Poodle posted this in #help-forum
Open in Discord
PoodleOP
Why is the initial load so slow?
I'm hosting my site on Vercel and using Supabase as my database. When a user is logged in, I immediately redirect them to the /dashboard page, so not much should be happening on the initial load.

However, when I enter my URL in the browser’s address bar, it sometimes takes 2 to 3 seconds before the dashboard page even starts loading. During that time, nothing appears to happen—I’m just stuck on the current page (for example, the default Google page) waiting for the redirect.

What could be causing this delay and how can I improve it?

1 Reply

Asian black bear
Vercel is a serverless provider. If you application isn't actively in use it will take a bit of time to start which is called cold start.