Skip to content

Commit ef7bfd1

Browse files
author
Amrouche Hamza
committed
[WebProfilerBundle] limit ajax request to 100 and remove the last one
1 parent 781c64c commit ef7bfd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@
108108
var rows = document.createDocumentFragment();
109109
110110
if (requestStack.length) {
111+
var nbOfAjaxRequest = tbodies.rows.count();
112+
if (nbOfAjaxRequest >= 100) {
113+
tbody.deleteRow(nbOfAjaxRequest - 1);
114+
}
115+
111116
for (var i = 0; i < requestStack.length; i++) {
112117
var request = requestStack[i];
113118

0 commit comments

Comments
 (0)