In my main process I create a renderer window:
var mainWindow = new BrowserWindow({ height: 600, width: 800, x: 0, y: 0, frame: false,
not mentioned in the previous answers, loadURL returns a promise that resolves at the same time the 'did-finish-load' event is fired; i.e., they're essentially equivalent, except one's a promise, and the other's a callback.
loadURL