I got around this potential issue by creating a ui-template (widget,global scope) and loading the library there.