Skip to content

Instantly share code, notes, and snippets.

@eltonmesquita
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eltonmesquita/db363322c78fbde6adce to your computer and use it in GitHub Desktop.
Save eltonmesquita/db363322c78fbde6adce to your computer and use it in GitHub Desktop.
Load jQuery as a fallback to Zepto
<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