Prevent flash of unstyled content by refactoring the code

Created on 23 November 2024, about 1 month ago

Problem/Motivation

On slower computers, a flash of unstyled content (FOUC) is visible when switching a page.

Proposed resolution

Load the JavaScript code loading the colour scheme class name directly in the HTML tag.

Refactor the CSS selectors to take into account the new location of the configured colour scheme class name.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada xmacinfo Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024