Customize Nuxt Loading

Create a custom loading component to replace the default loader


In this example:

nuxt.config.js contains the loading property which modifies the default loader

pages/loading.vue programmatically starts the loader so we force the page to take 2 seconds to load

Loading Sandbox...
Edit this page on GitHub Updated at Sun, Oct 24, 2021