Skip to content

Move the script to set light/dark mode to a common JS file.#159

Merged
geoffrey-wu merged 6 commits into
mainfrom
alopezlago/applyTheme
Apr 26, 2023
Merged

Move the script to set light/dark mode to a common JS file.#159
geoffrey-wu merged 6 commits into
mainfrom
alopezlago/applyTheme

Conversation

@alopezlago
Copy link
Copy Markdown
Collaborator

Move the script to set light/dark mode to a common JS file. This means browsers can cache the JS file and apply it to each website instead of loading it each time the website is fetched.

@geoffrey-wu
Copy link
Copy Markdown
Member

Added a commit to avoid flash of unstyled content.

@geoffrey-wu geoffrey-wu merged commit ab3a405 into main Apr 26, 2023
@geoffrey-wu geoffrey-wu deleted the alopezlago/applyTheme branch May 14, 2023 18:55
geoffrey-wu added a commit that referenced this pull request Jul 31, 2025
Move the script to set light/dark mode to a common JS file.
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.

3 participants