JSFiddle - React, Tailwind, and code Playground
by skaurus
JavaScript
(function () {
var load_after_jquery = ['/js/some.js', '/js/BIG.js', '/js/another.js'];
yepnope.errorTimeout = 500;
yepnope([{
load: {
'jquery': '//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.miin.js'
},
callback: {
'jquery': function () {
yepnope.errorTimeout = 10000; // default value
if (window.jQuery && jQuery.fn && jQuery.extend) return;
yepnope('/js/jquery-1.6.2.js');
}
},
complete: function () {
jQuery.holdReady(true); // jQuery should exist
}
},
{
load: load_after_jquery,
complete: function () {
jQuery.holdReady(false);
}
}]);
})();