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

Improves perceived performance of PR loading #2522

Merged
merged 2 commits into from
Feb 24, 2021
Merged

Improves perceived performance of PR loading #2522

merged 2 commits into from
Feb 24, 2021

Conversation

eamodio
Copy link
Contributor

@eamodio eamodio commented Feb 23, 2021

Adds preload command which can be triggered by Codespaces to put the PR extension in a "pr" loading state (e.g. in the correct view with a loading welcome message).

Also defers a lot of activation code until post-activation to improve perceived performance, since views will be show much quicker in a loading state.

@eamodio eamodio requested a review from RMacfarlane February 23, 2021 00:15
package.json Outdated
{
"view": "pr:github",
"when": "!github:initialized",
"contents": "Loading pull requests..."
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, there's a point later when we are actually loading pull requests where we display "Loading...", so I think this text might be better as "Initializing..."

Copy link
Contributor

@RMacfarlane RMacfarlane left a comment

Choose a reason for hiding this comment

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

LGTM!

@RMacfarlane RMacfarlane merged commit 30884b3 into main Feb 24, 2021
@RMacfarlane RMacfarlane deleted the eamodio/perf branch March 2, 2021 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants