Skip to content

Instantly share code, notes, and snippets.

@robinflyhigh
Last active December 18, 2015 02:59
Show Gist options
  • Save robinflyhigh/5714958 to your computer and use it in GitHub Desktop.
Save robinflyhigh/5714958 to your computer and use it in GitHub Desktop.
Load Script
<script>
function loadScript(url)
{
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
script.async = true;
head.appendChild(script);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment