win.webContents.on('dom-ready', () => { let data = ... win.webContents.send('sending', data) }) win.loadURL(...)