Last active
August 29, 2015 14:25
-
-
Save eltonmesquita/db363322c78fbde6adce to your computer and use it in GitHub Desktop.
Load jQuery as a fallback to Zepto
This file contains hidden or 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
<html> | |
<head></head> | |
<body> | |
<!-- Check for Zepto support, load jQuery if necessary | |
From: http://zurb.com/article/1180/how-to-use-foundation-4-s-faster-better-a --> | |
<script> | |
document.write('<script src=/js/vendor/' | |
+ ('__proto__' in {} ? 'zepto' : 'jquery') | |
+ '.js><\/script>'); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment