You can use RequireJS and convert your code to AMD or UMD to achieve this. RequireJS has a hook onNodeCreatedthat gives you access to the script tag before adding it to the document. You can add the attribute srito the tag script:
onNodeCreated: function (node, config, module, path) { node.setAttribute( "", ); node.setAttribute('crossorigin', 'anonymous'); }
: fooobar.com/questions/833768/...
Webpack ( UMD) RequireJS.
, external webpack, .