Hello,
I have an app that sends 3 AJAX requests in parallel on a form submission. Something like:
$.each(urls, function(i, url) {
$.ajax(url, {
...
callback:function(){}
});
});
This works great, all three requests are sent in parallel:

I decided to add reCaptcha v3 scores to each of those requests and ended up with something like this:
$.each(urls, function(i, url) {
grecaptcha.execute(CLIENT_KEY, {action: url})
.then(function(token) {
$.ajax(url, {
...
callback:function(){}
});
});
});
But this version has a sensible delay between grecaptcha.execute().then() callback invocations:

The delay is about 400-500 ms which in total give an extra second before the third (original) AJAX request is getting sent.
Is this delay by design? Is there any way to avoid having it?
Thank you,
Anton