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

This commit is contained in:
Amrouche Hamza 2017-12-16 16:19:00 +01:00
parent 781c64cd37
commit 9ff86d6181
No known key found for this signature in database
GPG Key ID: 6968F2785ED4F012
1 changed files with 5 additions and 0 deletions

View File

@ -108,6 +108,11 @@
var rows = document.createDocumentFragment();
if (requestStack.length) {
var nbOfAjaxRequest = tbodies.rows.count();
if (nbOfAjaxRequest >= 100) {
tbodies.deleteRow(nbOfAjaxRequest - 1);
}
for (var i = 0; i < requestStack.length; i++) {
var request = requestStack[i];