Last active
August 29, 2015 13:57
-
-
Save HandyAndyShortStack/9696965 to your computer and use it in GitHub Desktop.
asynchronous document.write test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var script = $('<script src="http://ir-na.amazon-adsystem.com/s/asw.js" type="text/javascript"></script>"'); | |
script.appendTo($('body')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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