Looking for a way to implement a loading screen right before the entire static page finishes loading? I'm currently utilizing modules:export to create my static page, but struggling to listen to the window load event since NextJs has already loaded the window.
I attempted using an external script with next/script, but couldn't quite figure out how to observe it from within the next app.
If you have any suggestions on how to make this work, please share your insights. Thank you!
Just to note, I am working with the App router.