Commit d0f5be4b authored by Phil Hughes's avatar Phil Hughes

Merge branch 'improve-blame-page-rendering' into 'master'

Improve Blame Page rendering performance

See merge request gitlab-org/gitlab!73885
parents ed6ca80d 32e45383
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
// IMPORTANT PERFORMANCE OPTIMIZATION // IMPORTANT PERFORMANCE OPTIMIZATION
// //
// When viewinng a blame with many commits a lot of content is rendered on the page. // When viewinng a blame with many commits a lot of content is rendered on the page.
// Two selectors below ensure that we only render what is visible to the user, thus reducing TBT in the browser. // content-visibility rules below ensure that we only render what is visible to the user, thus reducing TBT in the browser.
.commit { .commit {
content-visibility: auto; content-visibility: auto;
contain-intrinsic-size: 1px 3em; contain-intrinsic-size: 1px 3em;
...@@ -237,6 +237,10 @@ ...@@ -237,6 +237,10 @@
content-visibility: auto; content-visibility: auto;
contain-intrinsic-size: 1px 1.1875rem; contain-intrinsic-size: 1px 1.1875rem;
} }
.line-numbers {
content-visibility: auto;
}
} }
&.logs { &.logs {
......
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