Next.js Discord

Discord Forum

Optimize Speed

Unanswered
Japanese pilchard posted this in #help-forum
Open in Discord
Avatar
Japanese pilchardOP
My site uses clerk auth rn and it says waiting for clerk.{mysite} for 3-4 seconds before loading so I am not sure if this is the bottleneck on initial render. Any tips?
Image

16 Replies

Avatar
Dunker
is there any tips at that page
Avatar
Japanese pilchardOP
not that i've seen sadly. It seems to be some cold start issue possibly because first page load when I haven't visited my site for hours an take 4-5 seconds, while the subsequent loads are pretty instantaneous
but it's fucking my speed insights ofc bc it's probably polling as the first user and getting those cold start idk
Avatar
Dunker
do you have your site url to show me
Avatar
Japanese pilchardOP
just started it a week ago won't be in beta even for a few months so idk why I care about the score rn, but id rather fix it earlier than later when the codebase is much larger ya know
Avatar
Dunker
Image
Avatar
Japanese pilchardOP
what about this
Avatar
Dunker
its your perf report
Avatar
Japanese pilchardOP
ohh thanks! Wow this is way more insightful than vercels standard performance
goat
Avatar
Dunker
yeah but there is no big things to care imo
Avatar
American black bear
is there a way to see this stats, without having the app deployed at vercel?
Avatar
Dunker
yep, after building app, run npm start and open at chrome. then make a lighthouse test and look report
Avatar
American black bear
thanks for aserwing, i already did that, but i was talking about somethin more like the dashboard @Japanese pilchard show in the post
Avatar
Dunker
No you need to deploy to see that stats