Just like the title says. I need a way to load a JavaScript file via a synchronous ajax request that works in IE 9. The solution cannot use jQuery.
What I have so far (which works in chrome/ff/opera/etc.) is good but gives an "Access Denied" error when used in IE 9. Here is what I have now:
var xhr=new XMLHttpRequest();
xhr.open("GET","//path/to/someJsFile.min.js",false);
xhr.send(null);
var jsText = xhr.responseText;
The XMLHttpRequest object seems to work for some file types, but not .js files. Any ideas? This code is going on a client's page so I have no access to their backend code or the rest of the site's code.