-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron vs NWJS notes #549
Comments
Wouah, that's cool. Thanks for all these tests. |
You can try the NWJS package for Win7/8/10 to see if it is smooth enough: https://github.com/kiwix/kiwix-js-windows/releases/tag/v0.9.9.93-IA32 When running on battery, I notice the scroll-rate issue, but not when my machine is plugged in. Maybe I'm exaggerating. Possibly the scrolling issue wouldn't exist on Kiwix JS, because I use a setTimeout onscroll script (just one) to monitor various things in the Windows version. The XP version (jQuery only) is here: https://github.com/kiwix/kiwix-js-windows/releases/tag/v0.9.9.93-XP (The XP one will run on more recent machines, but can't render properly the landing page due to age of Chromium build.) I'd be happy to provide the necessary bits of code and instructions to build this with Kiwix JS. |
PS If running both the XP and the IA32 versions, I once got an error about the Chromium profile on XP being incompatible because I'd used a later version of Chromium. I had to delete the Chromium profile on my machine to be able to run the XP versions. JFYI. |
Some of the glitches I had experienced with Electron on Kiwix JS Windows appear to have been ironed out in the latest release I tested (v9.0.5): it is now possible to print from the iframe document (using I still prefer the NWJS approach of simulating a chrome extension. Electron in default mode runs from |
As promised in #727, some further notes on NWJS vs Electron, from my experience with both.
Reluctantly (because I think the main NWJS developer is doing an amazing job), I feel I would now have to recommend Electron for Kiwix JS due to the building options and the wide developer support. However, if Kiwix JS only wants to build minimal portable Zipped packages, then the recommenation would be less firm. |
Only relevant to KJSWL now. |
Having spent some time playing and building with both frameworks (ElectronJS and NWJS), I thought I should summarize my findings before I forget, as they could influence which one Kiwix JS should adopt (if any). Here are pros and cons:
Electron pros:
Electron cons:
NWJS pros:
NWJS cons:
Both frameworks would need extra code added to Kiwix JS in order to auto-load a packaged ZIM or a ZIM previously picked by the user. We should be able to adapt the existing Firefox OS code to do this.
The text was updated successfully, but these errors were encountered: