External script performance

We’re using an external script (Plotly.js) to display several graphs on our site. Everything works fine, but each chart is loading a separate instance of Plotly, and is therefore causing a little bit of a performance hit. Is there any way to load the script once or force it to be cached somehow?

if you load the plotly script in the section the script will only be loaded once.
if you load it in every custom widget it gets loaded several times.

without any information on how you have implemented it there is no chance on giving you datailed advice