Hi,
I have an app with many pages. Most of them have dynamic layouts to refresh the data. And this means that opening pages takes couple of seconds for some pages - not too long but long enough that a loading icon would be needed. I’ve tried some possibilities but none of them is what I want:
dcc.Loading around page_container works for loading pages but then the loading icon also appears for all callbacks within the page which are usually fast and don’t go well along it.
My next attempt was to add a callback to app.py which takes ‘pathname’ of dcc.Location as Input and Loading as output. It gets triggered when I want it but it has a short (probably constant) time of displaying the loading icon. It finishes while some pages are still not open.
Any idea how to get the loading working the right way?