I have a streamlit app, which for some reason is becoming unresponsive: Whenever I change the value of the dropdown, there is 1-2 second of lag before streamlit starts loading. I have tried to time every bit of my code within the streamlit app, but there is nothing above 0.1 seconds reported by the timing function. It seems that this 1-2 second of lag occur before any of my code is being executed.
Can you please help me understand and debug this case? It is difficult to improve, when I have no way to track what the problem is.