Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.