Load external JS library from HTML text panel

How can I load a JS library with Grafana and reference it from an HTML text panel?
I am currently using in-line loading with JQuery, but the library is quite large and blocks for 2-3 seconds.

Thanks!