Got it working. Just added the JS (not minimized) into the common/header.html.
Would be good if someone could document this behavior to the theme /component developer guide.
How did you use the JS in your component? I’m using the Versatile Banner component and want to add a button that calls my custom JS function. I’ve put in the head as you mention but get a CSP error:
When calling my code via
onclick="NavigateToCustomLoginUrl('facebook')" on a button.
Oh, think I answered my own question via An Introduction to Content Security Policy - HTML5 Rocks
loadScript in the codebase/meta for a systematic way to achieve this.