-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep showing the spa-loading-template until page:finish #21721
Comments
Additionally, setting |
This would be a good addition! |
Could you give me a sandbox example of the flash you're describing? 🙏 |
https://stackblitz.com/edit/github-nn6wp8?file=app%2Fspa-loading-template.html,app.vue |
@danielroe is the flashing issue fixed? I still encounter it in version 3.6.0 and 3.7.0 as @ucw provided the example |
Is this fixed? I am fetching data in components loading disappear and I see blank page for 2-4 seconds after animated Nuxt logo icon. |
I hope we can get a more permanent fix soon. I've come up with a quick workaround where I create an HTML element using the content from |
Any update on this? the workaround has issues with content loaded partially before spaloadingtemplate is removed. |
@danielroe do you think this could be a 4.x change as it is "somewhat" breaking? 🤔 |
I think it depends a bit on how we resolve it. I'd love to do so in a non-breaking way... if possible... |
You can either make a request, manually remove the spa-loading-template, or have a fade-out animation. |
Is the problem resolved? |
What do you think this way? |
I have already provided a link to a more better code This workaround is still not the most elegant solution to this issue |
Describe the feature
It would be nice to show the spa loading template until the 'page:finish' event.
When using Nuxt with SSR turned off and using the spa-loading-template to show a loading screen, the loading screen disappears once the app mounts but the app isn't rendered yet. I believe because nuxt lazy loads the components that need to be rendered. This leads to a blank page once the app mounts and until the components are loaded.
Other than that I love the new SPA loading template feature!
Additional information
Final checks
The text was updated successfully, but these errors were encountered: