[WebProfilerBundle] limit ajax request to 100 and remove the last one

This commit is contained in:
Amrouche Hamza 2018-02-22 15:10:32 +01:00
parent 084a5bcc3b
commit 33bace44d4
No known key found for this signature in database
GPG Key ID: 6968F2785ED4F012

View File

@ -122,6 +122,11 @@
return;
}
var nbOfAjaxRequest = tbody.rows.count();
if (nbOfAjaxRequest >= 100) {
tbody.deleteRow(nbOfAjaxRequest - 1);
}
var request = requestStack[index];
pendingRequests++;
var row = document.createElement('tr');