4 ms·
There probably is a lot of legacy stuff in there but I suspect that most of it is deeply integrated into the needed functionality. That said, I suspect that ma
by sime2009 6y ago
There probably is a lot of legacy stuff in there but I suspect that most of it is deeply integrated into the needed functionality.
That said, I suspect that many of the more modern JS APIs which are organised as separate modules are much easier to exclude when building something like Electron. I'm talking about these kinds of APIs: https://developer.mozilla.org/en-US/docs/Web/API https://developer.mozilla.org/en-US/docs/Web/API
Many APIs there to exposed things from deep inside the rendering engine, but there are still plenty left which are likely separate, like Bluetooth, Gamepad, Ambient Light, Beacon, IndexedDB, Image Capture, Geolocation, Payment request, Web Audio, etc.
Builds of Electron with exotic APIs removed could be good although I'm sceptical of whether that would bring the run-time memory use down much, i.e. what (API) you don't use, didn't hurt you anyway.