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

Invoke inline Bootstrap Color Mode javascript above CSS link tag to better avoid flash of un-themed content #1298

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

bensheldon
Copy link
Owner

Fixes #1224

Big thank you to @carlosmintfan for pointing out the change.

@carlosmintfan
Copy link

carlosmintfan commented Mar 25, 2024

I should however have pointed out that this is only my thought on this and I haven't actually tested it – please test it and don't be angry if it doesn't work Ah no, saw the info in bootstrap docs now 😅

@bensheldon
Copy link
Owner Author

💖 I think this will be an improvement. Though I think there will be no way to entirely prevent a flash: twbs/bootstrap#37774

@bensheldon
Copy link
Owner Author

I guess the way to entirely avoid this would be to store the value in a server-readable cookie so that the value could be inserted into the html server-side, rather than done entirely in JS in the frontend.

@bensheldon bensheldon added the bug Something isn't working label Mar 27, 2024
@bensheldon bensheldon changed the title Invoke inline Bootstrap Color Mode javascript above CSS link tag Invoke inline Bootstrap Color Mode javascript above CSS link tag to better avoid flash Mar 27, 2024
@bensheldon bensheldon changed the title Invoke inline Bootstrap Color Mode javascript above CSS link tag to better avoid flash Invoke inline Bootstrap Color Mode javascript above CSS link tag to better avoid flash of un-themed content Mar 27, 2024
@bensheldon bensheldon merged commit 94be330 into main Mar 27, 2024
20 checks passed
@bensheldon bensheldon deleted the theme-flash branch March 27, 2024 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

Buggy theme animation while switching tabs
2 participants