0
I’m going through a little problem :c
Whenever I open more than one Electron application and it starts loading a new main window for the user to start using the application, the entire operating system is extremely slow for a few seconds until the page is fully loaded.
This only happens when you open more than one Electron app. In my case, I’m using Windows 10.
Update of the question
Mysteriously other applications that run Electron like Discord don’t make this little problem happen.
This happens only between my Electron developed applications.
Update 2
Modules used in Preload:
const { remote, ipcRenderer, shell } = require('electron');
const Tray = remote.Tray;
const Menu = remote.Menu;
const app = remote.app;
const dialog = remote.dialog;
const download = require('./download');
const exec = require('child_process').execFile;
const empty = require('empty-folder');
const JSZip = require("jszip");
const path = require('path');
const fs = require('fs');
const osLocale = require('os-locale');
const ioHook = require('iohook');
const chokidar = require('chokidar');
const md5 = require('md5');
const md5File = require('md5-file');
const config = require('../../config.json');
const package = require('../../package.json');
const languagelist = require('../_locales/list.json');
const appUserModelId2 = remote.getGlobal("appUserModelId2");
const isAsar = remote.getGlobal("isAsar");
const tinyDir = remote.getGlobal("tinyDir");
That’s a solution or you had to remove the iohook?
– Leite
I still don’t know how to resolve this conflict because I didn’t find anything saying in relation to resolve it. : c It will be very difficult to find a replacement because I need a module that detects shortcut keys without needing to replace an existing one and runs on the computer globally. That’s exactly what I got with the iohook.
– Jasmin Dreasond