Skip to content

fix: prevent data-theme flicker on first load#221

Open
Adityakumar37 wants to merge 4 commits into
ioflux-org:mainfrom
Adityakumar37:fix#218
Open

fix: prevent data-theme flicker on first load#221
Adityakumar37 wants to merge 4 commits into
ioflux-org:mainfrom
Adityakumar37:fix#218

Conversation

@Adityakumar37

Copy link
Copy Markdown

Summary

Fix data-theme attribute flicker on first page load by adding a blocking inline script in index.html that sets the theme before React renders.

What kind of change does this PR introduce

Bug fix

Issue Number

Closes #218

Screenshots/Video

Screen.Recording.2026-03-26.at.10.28.58.PM.mov

Does this PR introduce a breaking change?

No

If relevant, did you update the documentation?

No

Signed-off-by: Aditya <amanssm221@gmail.com>
@adityayadav-dev

Copy link
Copy Markdown
Contributor

Hey @Adityakumar37 , in this repo we also update the version in package.json based on the type of change.
For example:

Screenshot_2026-03-27-00-03-11-10_320a9a695de7cdce83ed5281148d6f19.jpg

So a version bump might be needed here as well. Thanks!

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.

Feat: data-theme attribute flicker on first load

2 participants