From b605a4c95dffcea10db60dd6c9db9c16efe91086 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sun, 21 Apr 2019 22:39:22 -0400 Subject: [PATCH 1/7] add a preloading indicator - fixes #2449 --- .../src/components/PreloadingIndicator.svelte | 64 +++++++++++++++++++ site/src/routes/_layout.svelte | 7 +- 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 site/src/components/PreloadingIndicator.svelte diff --git a/site/src/components/PreloadingIndicator.svelte b/site/src/components/PreloadingIndicator.svelte new file mode 100644 index 0000000000..22980e2a6b --- /dev/null +++ b/site/src/components/PreloadingIndicator.svelte @@ -0,0 +1,64 @@ + + + + +{#if p > 0} +
+
+
+{/if} + +{#if p >= 0.4} +
+{/if} \ No newline at end of file diff --git a/site/src/routes/_layout.svelte b/site/src/routes/_layout.svelte index a72065a7c2..5482ea4d46 100644 --- a/site/src/routes/_layout.svelte +++ b/site/src/routes/_layout.svelte @@ -1,11 +1,16 @@ +{#if $preloading} + +{/if} + {#if $page.path !== '/repl/embed'}