Skip to content

Instantly share code, notes, and snippets.

@LucasArruda
Last active December 20, 2015 01:38
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 LucasArruda/6050033 to your computer and use it in GitHub Desktop.
Save LucasArruda/6050033 to your computer and use it in GitHub Desktop.
Load a script asynchronously
(function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true; e.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment