I have a website that uses webcomponents to add some extra interactivity.
In this case a carousel created in Svelte
<svelte:options customElement={{
tag: "carousel",
shadow: "open"
}} />
The nice parts with this is that I can server side render the content of <carousel> and it will be visible for search crawlers.
however the problem is that the content will render instantly without the styles that comes with the <carousel> tag, making the entire side flicker and layout shift once the webcomponent is loaded.
Are there any smart ways of delaying the initial render to the viewport, while still having it SEO friendly?
<styles>.