Created
January 8, 2014 02:51
-
-
Save chriswrightdesign/8310972 to your computer and use it in GitHub Desktop.
Loading 3rd party content asynchronously (from http://browserdiet.com/)
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
var script = document.createElement('script'), | |
scripts = document.getElementsByTagName('script')[0]; | |
script.async = true; | |
script.src = url; | |
scripts.parentNode.insertBefore(script, scripts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment