I see some posts using events like routeChangeStart, routeChangeComplete, etc... to make loading screens. It works well when changing the route, but when reloading page(F5), these events don't fire.
How would you make a loading screen when reloading the page? Thanks
Asked
Active
Viewed 215 times
1
Ken White
- 123,280
- 14
- 225
- 444
QUANG Tuấn Vũ
- 111
- 2
- 9
-
I think this might be a duplicate of https://stackoverflow.com/questions/55624695/loading-screen-on-next-js-page-transition – Michael Flores Oct 19 '21 at 05:48
-
@MichaelFlores That question is about client-side page transitions, not initial page load like OP is asking about. – juliomalves Oct 19 '21 at 17:37
-
@juliomalves you're right – Michael Flores Oct 21 '21 at 02:50