#Make dynamic pages initial server response time faster

8 messages · Page 1 of 1 (latest)

south cairn
#

Hi, I've noticed that when my page is static its initial server response is around 50ms and when the page is dynamic its around 1-1.25s. I know it needs to do stuff before it shows me the actual page but isnt there an option to show a skeleton instantly? Loading.tsx doesnt work

nova bladeBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

slim junco
#

Loading tsx will only wait for asynchronous operations happening in server components. If you have async things in files marked with use client or their children then it won’t be handled by loading.tsx or suspense.

south cairn
#

Ik but what else can I do to make initial load on dynamic pages fast

#

the same as on static pages

slim junco
#

is this in prod or dev?

south cairn
#

Prod

tidal raptor
# south cairn Prod

I would suggest using data cache with unstable_cache to reduce the loading speed