One-Step BuildĮlectron makes the one-step build dream come true. Flashing screens on loading or resizing the app signal bad app development. Speed is important, but you also have to provide a smooth UI experience.
ELECTRON CROSS COMPILE MAC ON LINUX HOW TO
For more tips on how to improve your Electron app’s performance, refer to the official Electron Guide on Performance. These two are by far the most important things to do to improve your application’s performance. The require() operation is very expensive. Bundle your application’s code into a single file to the extent possible.Either a couple of seconds after the app starts or when the module is needed. Remember to first measure the startup time of your app to have a point of reference.
Long loading times make your app feel less native and just plain annoying to use.īut there are two easy steps to make your app even faster. The following list should help you make your Electron app sexy and perfect. We curated a list that combines the hottest Electron features as searched for on the net with personal insights and code examples of Maciej. Electron is a paragon of painless application setup. Installing a prebuilt binary version of Electron is a piece of cake. You no longer have to code and maintain separate projects for each platform. Electron allows utilizing the web technologies know-how to build cutting-edge desktop applications, which proves the ideal solution for Maciej.Įlectron uses a single codebase for Windows, Linux, and macOS. Maciej is an experienced web developer very keen on repurposing his skills to build pro desktop apps. Electron constantly surprises him with powerful cross-platform capabilities and robustness. Maciej from Astec uses Electron in his project.
Sadly, no matter how skilled the developers, the resulting applications always turned out perfectible and lacked a true desktop feel. Over the last couple of years, a fair number of solutions have allowed programmers to utilize web technologies (e.g., HTML, JavaScript) to build desktop apps.