The Performance Mark mr-diffs-mark-diff-files-end is being triggered once per batch request
Summary
The recently added performance mark mr-diffs-mark-diff-files-end
is supposed to be triggered when the last file in the MR diff is rendered.
It's triggering on the last file of each batch.
Steps to reproduce
- Enable the performance bar
- Load an MR with 40+ files
- Check the console to see the output of the performance marks. Notice more than one occurrence of this mark.
What is the current bug behavior?
mr-diffs-mark-file-tree-end
triggers on every response of diffs_batch.json
.
What is the expected correct behavior?
mr-diffs-mark-diff-files-end
triggers only once per page.
Relevant logs and/or screenshots
Edited by Tomas Vik (OOO back on 2024-08-12)