Main Window Pre-Loader


#1

Hi There

Is there a way to show loading animation while loading main window? Often when I call mainWindow.loadURL(‘https://google.com’); it takes time and the screen is blank. It will be nice to have some loading animation…spinner etc.

Thanks


#2

You need to open new browser window and load html file from local application resources.
Take a look into this repo https://github.com/amelkikh/electronic-wechat and you can find good solution.
PS. it is not my repo ) i’m just was looking for interesting projects on Electron