Skip to content

index: Replace loading spinner with list item placeholders #2457

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

Merged
merged 2 commits into from
Apr 28, 2020

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Apr 26, 2020

#1937 changed the data loading code of the index route to load the summary data in the model() hook again. That is fine when using fastboot, but without fastboot it is currently resulting in an ugly loading spinner page before the real page content gets rendered.

This PR replaces the loading page with rendering the real page directly and showing placeholders until the real data is available.

The new approach is still compatible with fastboot due to the use of deferReadiness().

loading

r? @locks

Turbo87 added 2 commits April 27, 2020 15:48
This partially reverts commit a34f6c4.

The goal of this commit is to display loading spinners for the sections that are still loading, but display the rest of the content of the frontpage already, while the summary data is still loading.
@locks
Copy link
Contributor

locks commented Apr 28, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Apr 28, 2020

📌 Commit 10c5e9b has been approved by locks

@bors
Copy link
Contributor

bors commented Apr 28, 2020

⌛ Testing commit 10c5e9b with merge b8d9726...

@bors
Copy link
Contributor

bors commented Apr 28, 2020

☀️ Test successful - checks-travis
Approved by: locks
Pushing b8d9726 to master...

@bors bors merged commit b8d9726 into rust-lang:master Apr 28, 2020
@Turbo87 Turbo87 deleted the index-loading branch April 30, 2020 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants