Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Electron how to show loading spinner while loading page in BrowserWindow

I'm building an Electron Browser app. This app will load an external url (only) My question is how to add a spinner (gif image) while loading the page. I know that there is an even 'did-start-loadin'. this is working fine, but I did not find a way to show a runner. Also there is not status bar option in Electron / BrowserWindow. putting it there would be my favorite.

any ideas how to do that?

like image 846
user3640883 Avatar asked Nov 17 '25 01:11

user3640883


1 Answers

Maybe create a second window that opens immediately after you start the app. Basically just a splash-screen with your spinner. Your main window should be hidden, while it's loading, but once did-finish-load fired, you can close the splash screen and show the main window.

like image 196
RoyalBingBong Avatar answered Nov 18 '25 19:11

RoyalBingBong