Within my electron app, I am utilizing a singular window. As users navigate through the various "forms" within the application, I make use of the mainWindow.loadURL('file://...')
function. Unfortunately, this approach leads to a flashing effect where the browser window clears its content before loading the new HTML file. This results in a non-native user experience which is far from ideal. Additionally, I have already explored using the "backgroundColor
" option when creating the window like so:
mainWindow = new BrowserWindow({
width: 1000,
height: 600,
backgroundColor: '#2e2c29'});
However, this solution does not fully address the issue (the background of the app still flashes white for a second or more during URL switches).
Is there a workaround to prevent this unwanted flashing effect?