Apply content visibility within a large diff in Rapid Diffs
What does this MR do and why?
This MR applies content-visibility: auto to diff rows within a large diff in Rapid Diffs.
It allows for lighter rendering and smoother page interactions when viewing a diff with too many diff rows.
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Open compare revisions page for a commit with at least one file with many changes (more than 300)
- Scroll into the file with the largest diff
- Start recording DevTools performance snapshot
- Toggle file browser
- Stop recording
- Repeat the same for the main branch
- Compare snapshots
- Observe improvement in blocking time
Edited by Stanislav Lashmanov

