Use content-visibility on Rapid Diffs files
What does this MR do and why?
This MR adds content-visibility: auto to Rapid Diffs files to speed up page rendering. This change reduces streaming rendering cost by ≈5-10 times.
Screenshots or screen recordings
Screen_Recording_2025-05-02_at_19.21.47
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Use Chrome
138.0.7156.0or newer (a Canary build would work) - Enable
rapid_diffsandrapid_diffs_on_mr_showfeature flags - Go to merge request with lots of changes (more than 100 files changed or 3000 lines)
- Select 'Changes' tab
- Add
?rapid_diffs=trueto the URL, follow it - Observe a very responsive page during and after the loading
Edited by Stanislav Lashmanov

