Created
December 2, 2014 00:41
-
-
Save devdays/7f0cd165972b2c0c33bb to your computer and use it in GitHub Desktop.
Test for Async Javascript
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
function testSupport() { | |
var script = document.createElement("script"); | |
if(typeof script.async == "undefined") { | |
//not supported | |
} else if(script.async != true) { | |
//Script execution order not supported | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment