Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce startup jank, improve startup time #568

Merged
merged 2 commits into from
May 24, 2016
Merged

Reduce startup jank, improve startup time #568

merged 2 commits into from
May 24, 2016

Conversation

feross
Copy link
Member

@feross feross commented May 23, 2016

No description provided.

feross added 2 commits May 22, 2016 23:09
This feels a lot better on my 12" macbook (underpowered machine)
@@ -42,18 +40,29 @@ appConfig.filePath = path.join(config.CONFIG_PATH, 'config.json')
// This dependency is the slowest-loading, so we lazy load it
var Cast = null

// For easy debugging in Developer Tools
var state = global.state = State.getInitialState()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the variables in this scope are global, so no need for global.state

@dcposch
Copy link
Contributor

dcposch commented May 24, 2016

LGTM

@dcposch dcposch merged commit 2ea8d07 into master May 24, 2016
mathiasvr pushed a commit to mathiasvr/webtorrent-desktop that referenced this pull request May 26, 2016
* Reduce jank on app startup

This feels a lot better on my 12" macbook (underpowered machine)

* Defer loading iso-639-1 and simple-concat
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants