Ilnicki010 / support-local-businesses-app

COVID19 Global Hackathon /// To support local businesses, we’re creating a map layer for crowdfunding campaigns so ppl can see the businesses near them raising survival money online -- giving businesses access to and helping them maintain a loyal consumer base.
https://savesmall.org
1 stars 1 forks source link

Make site feel more responsive - Add loading indicator(s) #33

Open dwertheimer opened 4 years ago

dwertheimer commented 4 years ago

When you choose a city, it loads the mapbox. But it takes a few seconds, and you don't know anything is happening. We should have a Loading spinner in the mapbox area that displays immediately when you type in a city or location.

Also, when you select "Restaurants", nothing happens for over a second, and the "loading..." shows up only briefly before the content shows up. Would be better to display the search text string in the results area and a spinner until the content comes in.

Maybe use Suspense? https://reactjs.org/docs/concurrent-mode-suspense.html