I am using Plotly-Dash to visualize a heatmap from large data (1000000) points using Densitymapbox()
. The data around 30 MB loads for the first time slowly in the browser from the server and panning and zooming is also slow but browser doesn't crash. This 30MB data is coming from dash-update-component
.
I am using one dropdown to change the scale of heatmap.
However, I observed that when I change the scale from dropdown, a callback function is called and the data from server load again in the browser and the browser crashes since now dash-update-component
is loading the data again on top of the 30 MB.
Is there any way that browser cache can be cleared before loading the data from server on changing scale from dropdown so that browser doesn't crash.