Skip to content

Improve events page loading - #273

Open
olivia2450 wants to merge 5 commits into
mainfrom
olivia-improve-eventsloading
Open

Improve events page loading#273
olivia2450 wants to merge 5 commits into
mainfrom
olivia-improve-eventsloading

Conversation

@olivia2450

@olivia2450 olivia2450 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

closes #<issue_number>

🌟 Context

Found that getEvents() and getEventsGlobal() were being awaited sequentially, roughly doubling load time unnecessarily since they're independent fetches. Switched to Promise.all([...]) in EventsPageContent.tsx. This cut steady-state load time to about 3s in local testing.


📝 Description

Added Next.js loading.tsx and Suspense streaming to the events page so the page shell renders immediately on navigation while event data is being fetched, instead of the browser sitting on a blank/white screen until everything resolves.


📋 Notes

  • Card counts in the skeleton (2 per section) are a visual approximation. They're not tied to real data, since the skeleton renders before any fetch resolves.
  • Didn't add automated tests for the streaming/loading behavior itself, since that's runtime/rendering behavior rather than logic (verified manually instead)

@olivia2450
olivia2450 requested a review from yrska August 6, 2026 04:14
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

🚀 Preview deployment is live: Preview Link

@olivia2450 olivia2450 linked an issue Aug 8, 2026 that may be closed by this pull request
8 tasks
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.

[Frontend] Improve loading for events page

1 participant