#Nuxt-Layout is Slow when rendering?

6 messages · Page 1 of 1 (latest)

karmic rapids
#

Hey Nuxt-Experts!
I have the following problem, my client is a local bar which wants to make his menu digital.
So far so good. Die the fact, that the menu has a different layout then the other pages of the project I‘m using Nuxt-Layouts..
Unfortunately I‘m experience a big drawback in puncto speed. If I‘m using layout the initial pageload of each menu-page is about 200-300ms.
Yes, I‘m also retrieving some data from Prismic.IO but right now I‘m using only a quarter of the data and the page-speed is this long.

Is this a common thing, when using Nuxt-Layouts? I also thought about adding another app.vue to the menu-page folder, but idk if it‘s a good practice..

How would you solve this issue?

—-

Current folder structure:
/layouts
[…]
/pages
|- index.vue
|- /menu
|- index.vue
|- drinks.vue
|- food.vue
app.vue
nuxt.config.ts
[…]

shrewd junco
#

Assess the data you’re fetching. You mentioned yourself there’s a lot of data but you’re using a fraction of it. Take a look at the network request and perhaps contemplate making use of transform option with your fetches to reduce the payload. Then assess you page speeds again.

cyan vector
#

and are you using useAsyncData?

karmic rapids
karmic rapids