Skip to content

Improve the fixed header approach to remove "header padding fouc" #1560

@ang-zeyu

Description

@ang-zeyu

Is your request related to a problem?

Browser refresh:
fixed-header-approach

Describe the solution you'd like

Experiment with a dynamic positioning approach, e.g. https://www.w3schools.com/howto/howto_js_sticky_header.asp.

Describe alternatives you've considered

  • Add a "best estimate" of the initial header height -- issue: some pages have headers, some don't. Also only an estimate, some fouc would still remain.

Additional context

#1534 eliminates fouc from vue rendering but fouc from the style detection of headers at runtime remains.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions