#does putting loading.tsx make layout.tsx load first then wait for the page to load?

12 messages · Page 1 of 1 (latest)

swift field
#

does putting loading.tsx make layout load first then wait for the page to load? While not putting loading.tsx makes the web browser wait for all the contents to load showing a blank screen for a few moments. I tried it and this is what happens, is this right?

small houndBOT
#

🔎 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)

storm pendant
#

its not a thing about loading.tsx

#

loading.tsx only works on a page basis

#

changing from one page to another will show it, it aint a cheat code :D

storm pendant
#

your layout will always be loaded first, then based on your suspense boundaries the rest is loaded, if you dont have any the browser will wait to fetch evrything first, if you have a loading.tsx instead of a blank page it will be shown

#

thats it

swift field
#

@worldly saffron @storm pendant okay thanks for the help

storm pendant
small houndBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1223134633697349683 message)

#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1223134633697349683 message)