Aplicando retraso entre iteraciones de javascript para bucle
¿Es posible aplicar un retraso a las iteraciones sucesivas de un javascript for-loop usando jQuery o guión bajo? Tengo un bucle for en mi página que estoy usando para mostrar notificaciones de gruñidos cuando los usuarios cumplen ciertas condiciones y si hay varias condiciones, me gustaría escalonar las notificaciones de gruñidos en lugar de mostrar varias al mismo tiempo. Aquí está el bucle en cuestión:
var badge_arr = response.split("Earned badge:");
//Start at 1 so I'm not getting everything before the first badge
for(i = 1; i < badge_arr.length; i++){
responseStr += badge_arr[i];
//Create growl notification
//badge info echoed back will be of the form
//Earned badge: name: description: imgSource
var badge_info = badge_arr[i].split(':');
var title = 'NEW BADGE UNLOCKED';
var text = 'You just unlocked the badge '+badge_info[0]+': '+badge_info[1];
var img = badge_info[2];
createGrowl(title, text, img);
}