Skip to content

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
image image

How to set up and validate locally

  1. Open compare revisions page for a commit with at least one file with many changes (more than 300)
  2. Scroll into the file with the largest diff
  3. Start recording DevTools performance snapshot
  4. Toggle file browser
  5. Stop recording
  6. Repeat the same for the main branch
  7. Compare snapshots
  8. Observe improvement in blocking time
Edited by Stanislav Lashmanov

Merge request reports

Loading