I have an application that at the end of loading a page I make an AJAX request that takes about 20 seconds.
After this request my page continues to function normally so when I try to make another AJAX request it waits for the first one to return the result and then to execute.
Can you execute the second request without having to receive the result of the first?
FrontEnd
$.ajax({
url: '@Url.Action("NavegarNaEscala")',
method: 'post',
cache: false,
data: { escala: escala, direcao: direcao },
success: function (data) {
},
error: function () {
ExibirMensagem(1, "Ocorreu um erro ao navegar na escala.");
}
});
BackEnd
public JsonResult NavegarNaEscala(string escala, string direcao)
{...}