Currently, I am utilizing angular (in case it makes a difference) and endeavoring to restrict the quantity of ajax POST requests that my browser sends using javascript - particularly interested in vanilla javascript on the xmlHttpRequest
object. Any insights or suggestions would be immensely valued.
Edit 1:
To provide greater clarity, imagine clicking a button which usually triggers 15 simultaneous POST requests - one for each individual "record". My objective is to cap these concurrent requests at 5 maximum. Is there some sort of low-level solution (e.g. javascript xmlHttpRequest
) to control the number of these requests? It can also be assumed that the user will consistently use either chrome or safari because this tool is internal.