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 gets extremely slow for a few seconds until the page is fully loaded. >
This happens only when you open more than one Electron application. In my case, I'm using Windows 10.
Question update
Mysteriously other applications that run Electron such as Discord, do not make that problem happen.
This happens only between my applications developed on Electron.
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");