Why did my app slow down?

I was working in my app adding a menu with bootstrap and everything went fine with each change I reloaded the page when suddenly in one of the reloads the page started to load slowly and when I finish loading it is practically as if the screen was frozen, it takes a while react, when opening a menu, when sizing the window, when moving the mouse in everything it is completely slow, the strangest thing that this only happens in the lap of the work that and in my house it still works well, I tried to delete all the files from the disk and downloading them again, reinstall chrome, reinstall node, electron and all the dependencies that the project uses but even so the app is still slow, these are the only messages that appear in the console but they already came out long before that the app will start to crash

And this is the code that creates the window

const { app, BrowserWindow } = require('electron')

function createWindow () {
	const win = new BrowserWindow({
		width: 800,
		height: 600,
		webPreferences: {
			nativeWindowOpen: true,
			nodeIntegrationInWorker: true,
			nodeIntegration: true
		}
	})
  
	win.loadFile('index.html')
	win.webContents.openDevTools()
}

app.whenReady().then(createWindow)

app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') {
    app.quit()
  }
})

app.on('activate', () => {
  if (BrowserWindow.getAllWindows().length === 0) {
    createWindow()
  }
})