does putting loading.tsx make layout.tsx load first then wait for the page to load?
Answered
NuclearMonkey posted this in #help-forum
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?
Answered by Arinji
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
8 Replies
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
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
Answer
thats it
@joulev @Arinji okay thanks for the help
@NuclearMonkey <@484037068239142956> <@890486507872342027> okay thanks for the help
Np, mark a solution :D