Black Lives Matter. Please consider donating to Black Girls Code today.

How to improve the loading speed of my page

my app is dashboard, it need to load a lot of data.This creates a problem, and my page takes a long time to load.I want to know Is there any useful way to increase the loading speed of my page?
I debug find dash_update_component occupy a lot of time。Can this be reduced?
Thanks for any help.

It looks like you have a computationally intensive/long-running bunch of code in a callback. Ultimately you’re bound by how long it takes for your callback to be computed, so you’d start by performance profiling this code like you would any Python code.

If you have repeated parameters being passed into your callbacks, you can at least save time by not re-computing previously computed callback results through the lru_cache, as described in the Dash Docs.