Get rid of the white flash when the app starts up (#3083)

* Prevent FOUC on startup, use Signal Blue instead

Instead of flashing a white background on startup, the app will show a blue background while everything is loading.

* Make sure tests are rendered on white background

* Use `icon_250.png` as the loading image

* Remove hardcoded 'Loading...' text from template
This commit is contained in:
Vanja Cosic 2019-02-05 18:25:05 +01:00 committed by Scott Nonnenberg
parent b69e720c81
commit b26f6231d8
4 changed files with 11 additions and 6 deletions

View file

@ -210,6 +210,10 @@ function createWindow() {
minWidth: MIN_WIDTH,
minHeight: MIN_HEIGHT,
autoHideMenuBar: false,
backgroundColor:
config.environment === 'test' || config.environment === 'test-lib'
? '#ffffff' // Tests should always be rendered on a white background
: '#2090EA',
webPreferences: {
nodeIntegration: false,
nodeIntegrationInWorker: false,