jQuery throttling and queuing of AJAX requests

后端 未结 5 1603
庸人自扰
庸人自扰 2021-01-04 11:42

I\'m interacting with an API that allows one action per 5 seconds. However, I want to ensure all requests end up with the host. How can I queue and throttle the requests tha

5条回答
  •  花落未央
    2021-01-04 12:25

    jQuery has a .delay() and .queue() interface I suggest you checkout and read about.

提交回复
热议问题