From 78f44c7b5139be2273c39978146350832ae14ac5 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 21 Apr 2018 08:45:41 -0700 Subject: [PATCH] make timeline components async (#204) --- routes/_components/timeline/Timeline.html | 86 ++++++++++++----------- routes/_utils/asyncModules.js | 18 ++++- 2 files changed, 61 insertions(+), 43 deletions(-) diff --git a/routes/_components/timeline/Timeline.html b/routes/_components/timeline/Timeline.html index 2f138d10..e87244a6 100644 --- a/routes/_components/timeline/Timeline.html +++ b/routes/_components/timeline/Timeline.html @@ -4,46 +4,41 @@ on:focusWithCapture="saveFocus(event)" on:blurWithCapture="clearFocus(event)" > - {{#if virtual}} - - {{else}} - - - {{/if}} + {{catch error}} +
Error: component failed to load! Try reloading. {{error}}
+ {{/await}}