Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(views/login): fix "flash of unstyled content" #893

Merged

Conversation

pano9000
Copy link
Contributor

@pano9000 pano9000 commented Jan 6, 2025

Hi,

this PR aims to get rid of "FOUC" aka "Flash of unstyled content" that appears on the login page.

This is noticeable, if you go to the login page and reload the page – for a fraction of a second you will see the content go from unstyled to its final styled version.

Fix is easy: Stylesheets should be linked in the head, rather than the bottom of the HTML files.

move stylesheets to head of HTML to get rid of
"FOUC" aka "Flash of unstyled content"
@eliandoran eliandoran merged commit 6e38e91 into TriliumNext:develop Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants