In this example we queue an ajax call every time the user clicks the button, only allowing 5 items to be queued at a time.
The 'OnQueueChange' callback is used to display a meter that indicates the current load.

Click the button below to request a random string, and watch the load meter. The faster you click, the higher the meter will fill, until the button disables to make you wait for the queue to catch up.

Idle...