Hi, I have some plotly charts in my dash app and recently I have frequently found a long pause on the line of my code where the first chart is requested. On my local machine, each chart is made instantly (circa 0 seconds), and indeed this is sometimes the case on my hosted pythonanywhere version, but often I find the first chart takes circa 7 seconds to load and sometimes as many as 25 seconds. This appears to be only for the first chart, and then others are loaded instantly (even if I swap the chart contents around), so I presume the problem is with loading plotly in itself.
Example simple chart code:
import plotly.express as px
fig 1 =px.line(histdf,x='date',y='score')
I have tried updating to the latest version of plotly, and also tried building the charts as Plotly Graph Objects instead of Plotly Express objects but I get similar behaviour. This is quite annoying as this is now by far the slowest part of all my code. Is there anything else I can try?
Many thanks!