Skip to content

Instantly share code, notes, and snippets.

@shivajivarma
Created November 10, 2014 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shivajivarma/67b487f34cf5cdfb1669 to your computer and use it in GitHub Desktop.
Save shivajivarma/67b487f34cf5cdfb1669 to your computer and use it in GitHub Desktop.
$.getScript() in IE8 #1849
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script>
$.getScript( "/no-such-file.js", function( data, textStatus, jqxhr ) {
console.log( data ); // Data returned
console.log( textStatus ); // Success
console.log( jqxhr.status ); // 200
console.log( "Load was performed." );
});
</script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment