Skip to content

Commit

Permalink
update&perf[App]: Update and infcreased performance of org.logos rend…
Browse files Browse the repository at this point in the history
…ering by adding it into init in App
  • Loading branch information
Fredrik Marjoni committed Apr 5, 2026
1 parent 2f11b68 commit ed93b95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/edu/group5/app/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public void init() {
UserService userService = new UserService(this.userRepository);
DonationService donationService = new DonationService(this.donationRepository, organizationRepository);
OrganizationService organizationService = new OrganizationService(organizationRepository);

// Pre-load logos in background so they're ready when user views causes page
organizationService.getTrustedOrganizationsWithLogosAsync();

this.root = new BorderPane();
this.appState = new AppState();
Expand Down

0 comments on commit ed93b95

Please sign in to comment.