Skip to content

[Bug] FOUC (flash of unstyled content) occurs erratically, causes a layout shift prior to fonts loading/rendering correctly #11

@possumbilities

Description

@possumbilities

Description

When the site is first loaded, there is a brief FOUC, which delays the proper rendering of the included font-files, icons, etc.. This results in a layout shift on first load.

Afterwards, the files are cached and this doesn't usually occur again, but it is something we should address.

Reproduction

  1. Disable browser caching/reset cache
  2. Visit creativecommons.org
  3. See error.

Expectation

Site should load more smoothly on initial payload.

Screenshots

Screen Shot 2023-10-18 at 2 05 35 PM

Resolution

  • I would be interested in resolving this bug.

Metadata

Metadata

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions