title: "Insufficient resources error" when making repeated ajax requests from Chrome console
body: <p>I have this javascript code that is meant to run inside the google chrome console. It constantly checks a json formatted response. If anywhere in the response BestPrice equals max_price then it will purchase it using some API. The problem I am having is about 10 seconds after running it I get 'ERR_INSUFFICIENT_RESOURCES'.</p>
  
  <p>I suppose it is from too many requests? I need it to loop through as fast as possible, so if it can't be instant, is there a certain request limit?</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>function snipebot(page, max_page, max_price){
      $.getJSON('http://www.roblox.com/catalog/json?browse.aspx?Subcategory=2&amp;Keyword=&amp;CurrencyType=0&amp;pxMin=0&amp;pxMax=0&amp;SortType=2&amp;SortAggregation=0&amp;SortCurrency=0&amp;LegendExpanded=true&amp;Category=2&amp;PageNumber=' + page, function(data){
          $.each(data, function(index, item){
              if (item['BestPrice'] &lt;= max_price){
                  $.get('http://www.roblox.com/Item.aspx?id=' + item['AssetId'], function(data){
                      var purchaseData = $($(data).find(".PurchaseButton")[0]).data();
                      if (purchaseData['expectedPrice'] &lt;= item['BestPrice']){
                          $.post('/API/Item.ashx?rqtype=purchase&amp;productID=' + purchaseData['productId'] + '&amp;expectedCurrency=1&amp;expectedPrice=' + purchaseData['expectedPrice'] + '&amp;expectedSellerId=' + purchaseData['expectedSellerId'] + '&amp;userAssetID=' + purchaseData['userassetId'], function(){
                              console.log('[' + item['BestPrice'] + '] @' + new Date().toTimeString())    
                          });
                      } else {
                          console.log("Detected purchase.");
                      }
                  });
              };
              setTimeout(function(){
                  snipebot(page + 1 &gt; max_page ? 1 : page + 1, max_page, max_price);
              },100);
              console.log("!checked");
          });
      });
  };
  snipebot(1, 4, 50);
  </code></pre>