Commit 81493714 authored by Miguel Rincon's avatar Miguel Rincon

Merge branch '331445-reduce-repaints-blame-page' into 'master'

Reduce rendering on blame page

See merge request gitlab-org/gitlab!67050
parents d117d574 8a65b1e5
...@@ -136,6 +136,13 @@ ...@@ -136,6 +136,13 @@
* Blame file * Blame file
*/ */
&.blame { &.blame {
//
// IMPORTANT PERFORMANCE OPTIMIZATION
//
// When viewinng a blame with many commits a lot of content is rendered on the page.
// The line below ensures that we only render what is visible to the user, thus reducing TBT in the browser.
content-visibility: auto;
table { table {
border: 0; border: 0;
margin: 0; margin: 0;
...@@ -150,6 +157,12 @@ ...@@ -150,6 +157,12 @@
} }
td { td {
//
// IMPORTANT PERFORMANCE OPTIMIZATION
//
// When viewinng a blame with many commits a lot of content is rendered on the page.
// The line below ensures that we only render what is visible to the user, thus reducing TBT in the browser.
content-visibility: auto;
border-top: 0; border-top: 0;
border-bottom: 0; border-bottom: 0;
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
= i = i
\ \
%td.lines %td.lines.gl-w-full
%pre.code.highlight %pre.code.highlight
%code %code
- blame_group[:lines].each do |line| - blame_group[:lines].each do |line|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment