When looking up Electron and Offline HTML5, I have found it difficult to make a decision between which one to use for a project.
Assuming that a user will have to go to a certain website to download the Electron application, and would have to go to the same website to get the Offline HTML5 loaded, what are the pros and cons between using one over the other?
Some that I could think of:
Completely offline won't work, AFAIK, because the NPM module electron does not provide the correct version of the required executable files.
If you prefer working with projects that have a larger community, Electron is a great choice. If you use Rust and want fast desktop web apps, Tauri works well. Finally, if you want to get to market quickly, mobile support, and don't want to maintain two versions of your app, PWAs might work well.
It's easier than you thinkElectron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application.
It is slow It is just the renderer, and just like a web app in a regular browser, it uses HTML, CSS and JavaScript to build an interface and provide functionality. Those are a lot of extra layers. And because of this additional abstraction, it can be slower than a finely tuned native app.
It really depends on your exact requirements. The following is a list of everything that I came up with:
require
) both in main and renderer processes.fs
). Without such many node modules will not work in the JS runtime of the browser (e.g. ip
).file
API
file
scheme and modify them on the fly*.In short if you want your app to have a good native integration and act deterministic (i.e. no browser quirks) I suggest choosing electron.
electron-jade
for example takes use of protocol
API to compile all files ending with .jade
on the fly without the need to prior compilation.
DISCLAIMER: I am the developer of electron-jade
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With