Program expect response ajax request?

0

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; 
        }                           
    }); 
    
asked by anonymous 23.07.2017 / 04:47

0 answers