code: function checkQueue() {
      if(!inInterval()) {
        if(requestQueue.length) {
          var next = requestQueue.shift();
          sendRequest(next);
        } else if(timer) {
          clearInterval(timer); // No need to leave the timer running if we don't have any requests.
        }
      }
    }
docs: Check to see if we're ready to send any requests.