Well, I need to make multiple ajax requests within a loop and the program can only continue after the request is completed. I'm using "async: false", but it locks the whole page while waiting for the return. Does anyone know of any way the code will continue after the request is made?
for(i=0; i<10;i++)
$.ajax({
type: "GET",
url: link,
async: false,
success: function (e) {
var items = e.items;
titulo = items[i].snippet.title;
}
});