title: Why is the startup time of my Electron app so slow?
body: <p>After building my electron application, and running it, I have noticed the startup time of the app is extremely slow: from the moment I double-click the icon, it takes about six (!) seconds until the splash screen is displayed.</p>
  <p>I am aware that Electron is not the most efficient GUI framework, considering that it is basically a Chrome window, but still I think the app should normally load much faster. I have tried to follow the best practices while developing the app, including loading the dependencies only when they're really necessary, but to no avail.</p>
  <p>I am working on a Windows PC (x64 processor), and am using <a href="https://github.com/electron/electron-packager" rel="nofollow noreferrer"><code>electron-packager</code></a> to build the executable, like this:</p>
  <pre><code>electron-packager . &quot;My App&quot; --platform=win32 --arch=x64 --overwrite=true --prune=true
  </code></pre>
  <p>I wonder if the antivirus is to be blamed for the slow startup time, but I am not sure. I don't think <code>electron-packager</code> is contributing to the issue, given that I used <a href="https://github.com/electron-userland/electron-builder" rel="nofollow noreferrer"><code>electron-builder</code></a>, as well, and the app still needed plenty of time to start (my antivirus considered the <code>.exe</code> file packaged by <code>electron-builder</code> as a threat, and later removed it, even).</p>
  <p>What do you think can be the cause for the slow startup time? What else can I try to make my app start faster? For those who are experienced in building Electron applications, how have you countered this issue?</p>