Last active
April 17, 2016 20:48
-
-
Save zhuharev/968349a139122137cfb4f1488518ed56 to your computer and use it in GitHub Desktop.
JavaScript test suport functional
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 xhrSupport(document) { | |
"querySelector"in document&&"querySelectorAll"in document | |
} |
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 xhrSupport() { | |
var xhr = new XMLHttpRequest(); | |
return !!('onprogress' in xhr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment