the UI of my product is not yet fully developed, therefore I often find myself manually sending out fetch requests from the Chrome devtools console. However, sometimes I have to send out requests in bulk, which makes me just loop through them:
request.forEach(function(req){
await fetch(url, req);
});
For some reason though, it seems like my server is not OK with this volume, and doesn’t properly execute all the requests. I thought that sleeping the thread in between the requests would help, but… how do I actually do that?
setTimeout or setInterval don’t seem like good approaches for this problem.
Thanks!