mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-07 19:38:09 +08:00
impr: increase the transition smoothness when opening the account page
This commit is contained in:
parent
7068d6be5c
commit
67940204a1
1 changed files with 4 additions and 3 deletions
|
|
@ -1333,14 +1333,15 @@ export const page = new Page(
|
|||
},
|
||||
async () => {
|
||||
Skeleton.append("pageAccount", "main");
|
||||
await ResultFilters.appendButtons();
|
||||
ResultFilters.updateActive();
|
||||
await Misc.sleep(0);
|
||||
if (DB.getSnapshot()?.results === undefined) {
|
||||
$(".pageLoading .fill, .pageAccount .fill").css("width", "0%");
|
||||
$(".pageAccount .content").addClass("hidden");
|
||||
$(".pageAccount .preloader").removeClass("hidden");
|
||||
await LoadingPage.showBar();
|
||||
}
|
||||
await ResultFilters.appendButtons();
|
||||
ResultFilters.updateActive();
|
||||
await Misc.sleep(0);
|
||||
|
||||
void update().then(() => {
|
||||
void updateChartColors();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue