1

For an embedded project, when starting Chrome in kiosk mode, just after boot:

chrome.exe --kiosk http://127.0.0.1/index.html

there is a 500 ms delay before the site is displayed, during which Chrome displays a blank white screen, which is kind of "flashing" because before, the screen is black, and then, the site has a black background.

Is there a way to set a black background of the Chrome interface, in kiosk mode?

Edit: related: https://www.reddit.com/r/chrome/comments/squ71r/how_can_disable_this_white_flash_when_opening/

6
  • check out this thread. Chrome does not support user's stylesheet anymore, but Firefox does if it is a valid option for you to change browser.
    – 1NN
    Commented Sep 20, 2023 at 7:34
  • I wonder if an acceptable workaround is to start Chrome minimized, then to maximize it after x seconds programmatically since it seems that that initial white flash you see is not possible to change. So just an idea for a workaround if that is indeed the case but I have not tested or know the logic but I suspect something like this is possible from the technical side somehow and someway. Or start initial minimized, then load kiosk, then kill minimized session or something like that. Commented Sep 24, 2023 at 14:07
  • @VomitIT-ChunkyMessStyle It could be possible, but I did some tests, and it seems impossible to start Chrome in kiosk mode minimized. It's important to keep --kiosk mode for my application (it adds many features to limit the device for the end user on a public computer).
    – Basj
    Commented Sep 24, 2023 at 18:42
  • How about if you have a separate already opened and minimized chrome session keeping track of PID, then opening a new kiosk mode Chrome instance, does the kiosk mode session still have the initial white screen? This way kiosk is a separate session, then once it is up, you then kill the pid of the other session or use some other technique. Not sure if that's what you tested or not but I was thinking about something like that. I totally get the importance of kiosk mode configurations, just never noticed the initial thing you are mentioning here in those systems (not very many in my case though). Commented Sep 24, 2023 at 19:51
  • 1
    Thanks @VomitIT-ChunkyMessStyle I think this has been tested in reddit.com/r/chrome/comments/squ71r/…, but sadly no real solution yet. The only solution would be to recompile libGLESv2 . See also github.com/hbtlabs/chromium-white-flash-fix, but unfortunately this is abandoned.
    – Basj
    Commented Sep 25, 2023 at 6:58

1 Answer 1

1

There has been much written about this white flash for a new tab. Some writers even blame Windows display mechanisms rather than Chrome.

Below are some suggestions :

  • In chrome://flags/, enable the option of enable-force-dark
  • Use the extension Blank Dark New Tab Page
  • Use the extension Black New Tab Page
  • You could try another browser. Some reports say that Firefox and Vivaldi do not have this problem.
2
  • Thanks for your answer! I tested the three first solutions, but there is still a white flash on Chrome startup. I'll continue searching :)
    – Basj
    Commented Sep 18, 2023 at 8:17
  • As Vivaldi is built using Chromium (but different from Chrome), if it truly doesn't have this problem it might be a suitable replacement.
    – harrymc
    Commented Sep 18, 2023 at 8:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .