I’d like the dcc.Loading
spinner element to be seen when the web app is first visited. More specifically, the spinner is currently only triggered when UI elements are changed by the user. When the page first loads, the UI elements appear quickly, but the figure resulting from UI initial values takes ~5 seconds to appear. I’d like the spinner to show up after the UI elements appear, or sooner if possible.
Note, the spinner currently does exactly what I want for UI changes, I just want to extend it to the UI instantiation.
I’ve tried defining the dcc.Loading
element with the argument loading_state={'is_loading':True}
, but this doesn’t achieve anything.
The only method I can think of is to daisy chain some callbacks, where the UI first triggers the the spinner to become visible, then triggering the figure update via a hidden div
, then hide the spinner. Could this work? Is there an easier method?
Similar questions have been asked but not answered, so I suspect what I’m trying to achieve isn’t possible…
Thanks for your help!