News for hackers. Stuff that matters.
Re:Every Windows 11 app should kill Electron, and Discord ju... by CodesInChaos on Saturday November 07, 2026 @06:28PM (#50409030)
What I don't get is why most background electron/CEF applications don't unload the web engine when it's minimized to tray for some time. Chrome starts in about a second, the the webview shouldn't take more than that to re-initialize.
Re:Every Windows 11 app should kill Electron, and Discord ju... by NetMageSCW on Saturday November 07, 2026 @06:32PM (#50409054)
Probably because they have stuff to do in the background and so have to keep the javascript running.
Re:Every Windows 11 app should kill Electron, and Discord ju... by kaelwd on Saturday November 07, 2026 @08:58PM (#50409836)
You don't need the whole browser frontend for that though, Electron also includes Node.js which is much less memory hungry.
Re:Every Windows 11 app should kill Electron, and Discord ju... by jcelerier on Saturday November 07, 2026 @07:41PM (#50409460)
> Chrome starts in about a second,

on which machine ? go check the first three PCs here: https://www.amazon.ca/Best-Sellers-Laptop-Computers/zgbs/ele... ; do you think they open chrome in a second ?

Re:Every Windows 11 app should kill Electron, and Discord ju... by nomercy400 on Sunday November 08, 2026 @04:14AM (#50411614)
What would happen if you do not have enough memory to reopen it? How would that impact the user experience?
Re:Every Windows 11 app should kill Electron, and Discord ju... by lexicality on Sunday November 08, 2026 @05:53AM (#50412134)
well that'll probably happen less often if all these electron apps stop using 4GB of ram in the background constantly