creativecommons / creativecommons/vocabulary
[Bug] FOUC (flash of unstyled content) occurs erratically, causes a layout shift prior to fonts loading/rendering correctly
Open
🏁 status: ready for work
🏷 status: label work required
💻 aspect: code
🕹 aspect: interface
🟩 priority: low
- Dominant language
- HTML
- Stars
- 23
- Forks
- 84
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 3
Description
## 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
## Resolution
- [x] I would be interested in resolving this bug.
Contributor guide
Assessment
This issue has not been assessed yet.