Skip to content

Instantly share code, notes, and snippets.

@HandyAndyShortStack
Last active August 29, 2015 13:57
Show Gist options
  • Save HandyAndyShortStack/9696965 to your computer and use it in GitHub Desktop.
Save HandyAndyShortStack/9696965 to your computer and use it in GitHub Desktop.
asynchronous document.write test
$(function() {
var script = $('<script src="http://ir-na.amazon-adsystem.com/s/asw.js" type="text/javascript"></script>"');
script.appendTo($('body'));
});
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="adder.js"></script>
</head>
<body></body>
</html>
document.write('This text written from an asynchronously loaded script');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment