Skip to content

Breadcrumbs should be generated in the html to prevent layout shift #10836

@xPaw

Description

@xPaw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions