-
Notifications
You must be signed in to change notification settings - Fork 1
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
Flashing of unstyled content (FOUC) #6
Comments
@inject-into should be set to auto, debatable if @run-at with document-body changes anything. In theory it should make the flashing worse since it needs to wait for the document body to show up. Which browser are you using @gelebflamefinger ? If it works for you then I'm satisfied. |
@3nly I am using Firefox. Seems to have completely fixed it for me. |
I've noticed a few bugs now that StyleChan is set to start at document-body, sometimes certain links don't get styled, particularly the Index and Catalog navigation links, but also this unusable StyleChan link appears at the bottom of the page, as here on /b/ with Chrome: Curiously it only happens in 4chan X, not XT. @gelebflamefinger great to hear! |
As per https://boards.4chan.org/g/thread/103525147#p103553843
Native 4chan CSS loads (or fails to load) before StyleChan, if native theme colour mismatch with StyleChan theme you get "flashbanged" for a few milliseconds before the CSS applies.
Could set the 4chan cookie for sfw and nsfw themes to Tomorrow theme depending if theme is dark or not (with isLight function maybe). Part of this issue might be caused by adblockers blocking JS/CSS loading and slow connections/browsers. Don't see this too often on my side.
The text was updated successfully, but these errors were encountered: