Keep window hidden until init completes?


#1

I would like to keep my window hidden until the init completes so that the user doesn’t see the intermediate stages of the window loading. Currently we hide the window after creation and then reshow it at completion but this creates an unpleasant flash on launching the app. We’d like to avoid the initial appearance of the window.

I tried setting the window size to 0,0 and then resizing, but a small menu bar still appears until the init is complete.


#2

Solution found, BrowserWindow has an optional parameter: show (true/false) which defaults to true.
Set to false the window remains hidden until you show it!