It is an eval from BP perspective and HS doesn't like it either.
I found two basic mistakes in configurations.
You put a shared code or a 3rd party lib to UI Script and include it to a widget. Global checkbox is redundant. Any UI Script will be loaded.
Yea, good motivation, avoid code duplication. Any shared functionality can be put to UI script and loaded in client side
:) Yes, loaded.
If it is global, it doesn't need to be loaded. But as it can be loaded, why should be global?
A special note about it. I came across a ServiceNow workaround implemented using a global UI script. It was related to KB0622469. The issue was resolved in London release. The knowledge article was retired. Now it is not accessible. RIP.