Created
April 7, 2018 01:28
-
-
Save douglaskarr/b42d1c5184735ab410cdadf5e36e1d36 to your computer and use it in GitHub Desktop.
Delay the loading of an external script using jQuery
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
<script type="text/javascript"> | |
window.setTimeout(function() { | |
jQuery.getScript( "//domain.com/script.js"); | |
}, 500); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment