I am trying to make multiple request to store different profiles from a website on one array. But on safari i keep getting the same profile as the response for my requests . on the other browsers is working fine.
...
for(let i=0;i<12;i++){
$.ajax({
url: "https://randomuser.me/api",
}).done(function(data) {
profiles.push(data);
});
}
...
this is what i am getting but every profile should be different [1]: https://i.stack.imgur.com/WnfzW.png
what can i do to solve this