Skip to content

Instantly share code, notes, and snippets.

@notthetup
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notthetup/8934984 to your computer and use it in GitHub Desktop.
Save notthetup/8934984 to your computer and use it in GitHub Desktop.
Try to load using XMLHTTPRequest
var tryload = function(url){
var ir_request = new XMLHttpRequest();
ir_request.open("GET", url, true);
ir_request.responseType = "blob";
ir_request.onload = function () {console.log("loaded")};
ir_request.send();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment