Where do I put the SPA loading template?
I'm doing a web app and I decided that CSR is the best pattern. The docs say that I must make an HTML that will be displayed while the page is hydrating. But the path where it says that I have to put it doesn't match with any from the directory structure.
5 Replies
if I'm not mistaken,
~app/
means the root @nulkodeso I need to put it in the root file of the project?
no no
create an
app
folder in your project
e.g. path/to/my/project/app/spa-loading-template.html
Where e.g. your package.json is in path/to/my/project/package.json
Also, be aware that this is a brand new featureGitHub
feat(nuxt): allow configuring spa loading indicator by danielroe · ...
🔗 Linked issue
resolves #14796
❓ Type of change
📖 Documentation (updates to the documentation, readme or JSdoc annotations)
🐞 Bug fix (a non-breaking change that fixes an issue)
👌 Enhancement ...
So, only on the nuxt-edge channel for now, will be released in
3.6.0