diff --git a/src/App.svelte b/src/App.svelte index 66d22e8..81c530d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,8 +6,8 @@ import { count } from 'src/api/visit-counter' import Current from 'src/components/Current.svelte' - import Debug from 'src/components/Debug.svelte' import Highlights from 'src/components/Highlights.svelte' + import Lazy from 'src/components/Lazy.svelte' import Main from 'src/components/Main.svelte' import Settings from 'src/components/Settings.svelte' @@ -74,7 +74,9 @@ - + + + diff --git a/src/components/Lazy.svelte b/src/components/Lazy.svelte new file mode 100644 index 0000000..5cd62d0 --- /dev/null +++ b/src/components/Lazy.svelte @@ -0,0 +1,10 @@ + + + +{#await component.then ? component : component()} + Loading... +{:then co} + +{/await}