Skip to content

Instantly share code, notes, and snippets.

View burakduganci's full-sized avatar
🏠
Working from home

bd burakduganci

🏠
Working from home
View GitHub Profile
@Fridus
Fridus / jQuery.getScripts.js
Created November 28, 2014 10:57
jQuery getScript multiple
jQuery.getScripts = function(scripts, callback) {
var progress = 0;
var _getScript = function() {
if (progress == scripts.length) { return callback(); }
$.getScript(scripts[progress], function() {
progress++;
_getScript();
});
};