Skip to content

add loading spinner while fetching food listingsFeature/loading spinner#599

Open
Gowthamimudam wants to merge 3 commits into
angelabera:mainfrom
Gowthamimudam:feature/loading-spinner
Open

add loading spinner while fetching food listingsFeature/loading spinner#599
Gowthamimudam wants to merge 3 commits into
angelabera:mainfrom
Gowthamimudam:feature/loading-spinner

Conversation

@Gowthamimudam
Copy link
Copy Markdown
Contributor

@Gowthamimudam Gowthamimudam commented Feb 20, 2026

📌 What’s Changed

This PR adds a loading spinner that appears while food listings are being fetched from the database. Previously, there was no loading indicator, which could confuse users on slow networks.

✅ Improvements

  • Shows a spinner centered on screen while data is loading
  • Ensures spinner stays visible for at least 300ms to avoid flickering
  • Adds dimmed background during load to improve perceived performance
  • Spinner hides automatically when data has finished loading
  • Refactors loadListingsFromDB() in foodlisting.js to manage spinner state
Screenshot from 2026-02-20 17-20-45

@Gowthamimudam
Copy link
Copy Markdown
Contributor Author

Hello @angelabera ,I have resolved the merge conflits and added the feature please go through it and add a difficulty badge swoc 2026.

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.

1 participant