Skip to content

Commit cfb2c4f

Browse files
committed
FIx loading speed of dashboard by loading the data async
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 58d1e8e commit cfb2c4f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Dashboard/RecommendationWidget.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public function load(): void {
8080
if ($user === null) {
8181
return;
8282
}
83-
$this->initialStateService->provideInitialState('recommendations', 'recommendations', [
84-
'enabled' => true,
85-
'recommendations' => $this->recommendationService->getRecommendations($user)
86-
]);
83+
// $this->initialStateService->provideInitialState('recommendations', 'recommendations', [
84+
// 'enabled' => true,
85+
// 'recommendations' => $this->recommendationService->getRecommendations($user)
86+
// ]);
8787
Util::addScript('recommendations', 'dashboard');
8888
}
8989
}

0 commit comments

Comments
 (0)