Each chart embedded in website calls plotly.js

Hi,

I have a web page where I have many plotly charts. I write each chart to html and use iframe or object to embed them in the main html.
Since iframe cannot access parent’s js, every chart loads plotly.min.js which makes the page really slow to load. Any advice?
PS: I need to update the charts hourly for my application so the solution process cannot be too manual.

Thanks!

Hey John,
Did you ever find a solution to this? I’m having the same problem. I took all charts out of iFrames so I only had to load the plotly javascript once, which sped everything up but really hurt my Google Largest Contentful Paint score, which is more important then speed in my case.
Thanks.