So the callback “url” returned the app2.layout at 12.98 seconds. App1.layout would take about 1 second.
App1 contains 3 graphs
App2 contains 15 graphs
There is no callbacks in either App1 and App2.
What is the reason for this 12.98 second load time? You could say the obvious reason is that App2 seems to contain more elements and data.
I genuinely thought that long as I initialized my graphs beforehand in the code performance wouldnt be an issue.
Is it too many DOM elements for the webpage to load quickly? No?
My plan to resolve the 12.98 seconds on requesting App2.layout is initializing App2 with just a small portion of data, and add the rest of the original data to the App2.layout later with a callback or something.
There is nothing in you index.py file that indicates where the time is spent. General advice could be to pre process/preload data whenever possible, but ýou would probably need to do some performance diagnostics on the code to identify what takes so long.