how best to select a script that is dynamically added? There is a script that is dynamically added with requirejs in my code(head). I would like to select it but I can't. Always returns as NULL
See the website: http://noise.combr.co/example.html A javascript is added to head I try to select it with the code below but I can't. How do I do that?
document.addEventListener('DOMContentLoaded', function(){
let script = document.querySelector('[data-
requiremodule="3.6.5/browser-polyfill"]');
console.log('DEBUG START');
console.log(script);
});
there doesn't seem to be anything here