Commit 576d9586 authored by Tim Zallmann's avatar Tim Zallmann Committed by Jacques Erasmus

Pre-Render Last Commit Block

By pre-rendering already in HAML we are able
to reduce the overall CLS by a lot
parent 78397f0f
.project-last-commit {
min-height: 4.75rem;
}
.tree-holder {
.nav-block {
margin: 16px 0;
......
......@@ -11,6 +11,9 @@
= render 'projects/tree/tree_header', tree: @tree
#js-last-commit
.info-well.gl-display-none.gl-display-sm-flex.project-last-commit
.gl-spinner-container.m-auto
= loading_icon(size: 'md', color: 'dark', css_class: 'align-text-bottom')
- if is_project_overview
.project-buttons.gl-mb-3.js-show-on-project-root
......
---
title: Rendering Loading State of Last Commit earlier
merge_request: 49362
author:
type: performance
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