storyblok-nuxt
storyblok-nuxt copied to clipboard
StoryblokComponent vs component
I get huge performance issues when using the StoryblokComponent instead of component:
example using component: https://family-business-unit-f0hhivfwp-cloudnova-srl.vercel.app/
example using StoryblokComponent: https://family-business-unit-6nuzynxzr-cloudnova-srl.vercel.app/
Hi @m0zz094 thanks for this issue! I'm curious about this, because StoryblokComponent is a basic wrapper of component
as you can see https://github.com/storyblok/storyblok-vue/blob/main/lib/StoryblokComponent.vue
Have you investigated this further?
@manuelschroederdev keeping you on the loop
Hi @alexjoverm, I haven't investigated this further, but if you need more context here's what I'm doing on [...slug].vue
`
story = data.value.data.story; } `
Hey @m0zz094, could you possibly provide a link to your complete project on GitHub or StackBlitz? That would make it a little easier for us to debug the issue. Thanks. 😊
I've create two different versions of a demo project, one using the StoryblokComponent, one using the default component. I've uploaded them to Vercel and couldn't identify any notable performance differences.
https://storyblok-components-test.vercel.app https://components-test-inky.vercel.app
Are you still encountering these issues?
If you look at the page source on the the two links, there is a big difference, the https://storyblok-components-test.vercel.app/ does not generate the static markup and https://components-test-inky.vercel.app/ does.. Maybe there is a bug in StoryblokComponent?
I'm also experiencing the issue with the StoryblokComponent.
Here's a comparison of the markup generated for the two test sites @manuelschroederdev set up with Javascript disabled.
Notice that the component markup is only generated on https://components-test-inky.vercel.app/


Thank you very much for pointing this out, @Lauritzz77 and @caroillemann. We will investigate this further and get back to you as soon as possible.
Hi, @m0zz094 do you know if this is still an issue? @manuelschroederdev @Dawntraoz any update from our side?
Hi @alvarosabu, I haven't changed my codebase since then honestly, I'm still using the component approach for now
As per the abovementioned issue, this behavior was fixed from v4.x.x -> https://github.com/storyblok/storyblok-nuxt/issues/204#issuecomment-1350794291.
Can you @m0zz094 replace your solution with StoryblokComponent
using a v4.x or above of this package so we can be sure this issue can be closed <3 Thanks in advance!
Any updates @m0zz094?