Faster startup time (50ms)

This commit is contained in:
Feross Aboukhadijeh
2016-04-07 00:58:37 -07:00
parent 1947a03e94
commit d49a8e772f
3 changed files with 8 additions and 7 deletions

View File

@@ -20,10 +20,8 @@ function init () {
ipcMain.on('ipcReady', function (e) {
app.ipcReady = true
app.emit('ipcReady')
setTimeout(function () {
windows.main.show()
try { console.timeEnd('init') } catch (err) {}
}, 50)
windows.main.show()
console.timeEnd('init')
})
var messageQueueMainToWebTorrent = []