3 ms·
There are a couple of things to consider: 1. Electron is not necessarily the best choice if all you want to do is "put your website in the Dock." In Electron,
by bengotow 10y ago
There are a couple of things to consider:
1. Electron is not necessarily the best choice if all you want to do is "put your website in the Dock." In Electron, JavaScript on the page can do anything native code could do, like write to the filesystem unless you explicitly disable node integration. Just loading up your website inside an Electron window could be a disastrous security hole.
2. Electron apps run at least 50MB, and take at least 100MB of RAM. (Equivalent to one tab in Chromium)
3. JavaScript is single threaded. Node's event-driven / async design makes is a good fit for most things, but considers all work equal. You have to bend over backwards to do things that a nice threading abstraction would make easy (like Regexp find/replace in a huge directory tree. Atom actually spawns a separate process to do it so it doesn't consume the JavaScript process.)