3 ms·
Put this in the end of your html file in a <script> tag (function() { var src = (document.querySelector) ? '//zeptojs.com/zepto.min.js' : '//ajax.googlea
by huskyr 14y ago
Put this in the end of your html file in a <script> tag
(function() {
var src = (document.querySelector) ? '//zeptojs.com/zepto.min.js' : '//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js';
document.write('<script src="' + src + '"><\/script>');
})();
This will load Zepto if the browser supports it, and jQuery otherwise.