dotnet / dotnet/docfx

Breadcrumbs should be generated in the html to prevent layout shift

Open
#10,836 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

Currently they are generated by the javascript after the page loads, which means there's a layout shift.

If you keep reloading any page there's an obvious content shift, e.g. here: https://dotnet.github.io/docfx/api/Docfx.Dotnet.DotnetApiCatalog.html

At the very least, the breadcrumbs element should at least have a ` ` in it to preserve space.

Ideally things like TOC would also be generated, but at least they don't shift content.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.