Last active
December 29, 2016 18:18
-
-
Save MartinJHammer/2f07a061849674e8b359b4f4d8e45117 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<script type="text/javascript"> | |
function downloadJSAtOnload() { | |
var element = document.createElement("script"); | |
element.src = "!!!YOURJAVASCRIPTHERE!!!.js"; | |
document.body.appendChild(element); | |
} | |
if (window.addEventListener) | |
window.addEventListener("load", downloadJSAtOnload, false); | |
else if (window.attachEvent) | |
window.attachEvent("onload", downloadJSAtOnload); | |
else | |
window.onload = downloadJSAtOnload; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment