Skip to content

fix(frontend): run theme pre-init script synchronously in <head> to prevent dark mode flicker (#1482) - #1494

Closed
ryder777777 wants to merge 1 commit into
FinesseStudioLab:mainfrom
ryder777777:fix-1482-prevent-dark-mode-flicker-pre-init
Closed

ryder777777 wants to merge 1 commit into
FinesseStudioLab:mainfrom
ryder777777:fix-1482-prevent-dark-mode-flicker-pre-init

Conversation

@ryder777777

Copy link
Copy Markdown

Closes #1482

/claim #1482

Summary

  • Hoists the synchronous theme initialization <script> into <head> in frontend/index.html and sets data-theme, classList, and colorScheme before first paint.

Contributor Payout Wallet (Binance USDT TRC20 / Tron Network ONLY)

  • USDT (TRC20) Address: TXmG2bbkS5m2ZfT535o5kQNpwYzhb5JUYg

@ryder777777

Copy link
Copy Markdown
Author

/claim #1482

Contributor Payout Wallet (Binance USDT TRC20 / Tron Network ONLY): TXmG2bbkS5m2ZfT535o5kQNpwYzhb5JUYg

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.

frontend: dark mode flicker on initial page load due to missing theme pre-init script

2 participants