Skip to content
Discussion options

You must be logged in to vote

It seems to work well with a client-side import.
https://svelte.dev/repl/3ac725a80c044845976af9977eb5bf6f?version=3.53.1

Also works if SSR is disabled so maybe that's the issue?
https://stackblitz.com/edit/sveltejs-kit-template-default-3cqhpa?file=src/routes/+page.js

Not sure this should work with SSR (I've never used this package). But you could workaround the flashing with an await block and a promise for the import() to show a loading skeleton / spinner.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@manstie
Comment options

Answer selected by manstie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants