/* * Script tag fetch * * When load.metadata.scriptLoad is true, we load via script tag injection. */ (function() { if (typeof document != 'undefined') var head = document.getElementsByTagName('head')[0]; var curSystem; var curRequire; // if doing worker executing, this is set to the load record being executed var workerLoad = null; // interactive mode handling method courtesy RequireJS var ieEvents = head && (function() { var s = document.createElement('script'); var isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]'; return s.attachEvent && !(s.attachEvent.toString && s.attachEvent.toString().indexOf('[native code') < 0) && !isOpera; })(); // IE interactive-only part // we store loading scripts array as { script: