Each iFrame loading plotly js library

Hi there, I have a page with 8 iFrames that are showing graphs. Each iFrame is loading the plotly js library separately (as iFrame is separate page). This is causing a massive hit to my speed score with google and is hurting SEO.

Does anyone know of any solution for this? I have tried taking all iframes out and directly embedding the html, which did help in that it only loaded the plotly js library once, but it still hurt the score because it had to load all 8 graphs at once, where as with iFrames I was using lazy load.