Are you in charge for your CSP : Javascript
CSP, Content Security Policy is a great tool that enables us to instruct the browser on which sources it can retrieve material from. In this case Javascript. So if you want to avoid "foreign" javascript on your pages, the CSP script src is the way forward.