From d03dcd828961c0444cb661e34d5a542522e17bab Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Wed, 1 Apr 2020 17:52:55 -0400 Subject: [PATCH] groups: preload spinner asset --- pkg/interface/groups/src/js/components/root.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/interface/groups/src/js/components/root.js b/pkg/interface/groups/src/js/components/root.js index fcfd469df2..010868e352 100644 --- a/pkg/interface/groups/src/js/components/root.js +++ b/pkg/interface/groups/src/js/components/root.js @@ -22,6 +22,10 @@ export class Root extends Component { store.setStateHandler(this.setState.bind(this)); } + componentDidMount() { + new Image().src = "/~groups/img/Spinner.png"; + } + render() { const { props, state } = this;