Plotly loading issue

Hi All,

im using plotly line graphs in HTML, when the json has more data its taking more than one min to load.
We have left nav bar , when switching from one tab to another its taking more time to load the content due to plotly line graphs.

Data for line graph: X-axis having 40 transactions, each transaction has around 5000 points to plot.
Approaches I have tried:

  1. Giving an event listener for HTML on load of the page , minified the files (https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Author_fast-loading_HTML_pages).
  2. Giving “type: scatterlg” for line graphs and plotly.react(id,data,layout) instead of plotly.newPlot(id,data,layout).
    By using above approaches also its taking same time.

May I please kindly know if anyone know how the loading time can be reduced for large data.

Thanks,
Sree_Bhuvana.