Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Zepto + jQuery on CDN + local support. Ready for Rails 3.1+ with asset pipeline
document.write('<script src=//' + ('__proto__' in {} ? '' : '') + '.min.js><\/script>')
if ('__proto__' in {})
window.Zepto || document.write('<script src="assets/libs/zepto.min.js"><\/script>')
window.jQuery || document.write('<script src="assets/libs/jquery.min.js"><\/script>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment