set preloading: true when appropriate

This commit is contained in:
Rich Harris
2018-05-04 23:23:41 -04:00
parent 3becc1cbe2
commit 971342ac7a
3 changed files with 45 additions and 14 deletions

View File

@@ -1 +1,6 @@
<svelte:component this={Page} {...props}/>
{#if preloading}
<progress class='preloading-progress' value=0.5/>
{/if}
<svelte:component this={Page} {...props}/>