Is there a native way to do lazy loading in Kit? #4493
Unanswered
frederikhors
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Is there anyone who can answer? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can't u just use a svelte await block? {#await import('./MyComponent.svelte')}
Loading...
{:then { default: component } }
<svelte:component this={component} />
{:catch error}
Failed to load component
{/await} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What do you think about github.com/kaisermann/svelte-loadable?
Is there a native way to do that in Kit?
Beta Was this translation helpful? Give feedback.
All reactions