opendata / Open-Data-Census

A census of U.S. states' open data holdings.
https://census.usopendata.org/
MIT License
4 stars 3 forks source link

Display a spinner while loading grid data #22

Closed waldoj closed 8 years ago

waldoj commented 8 years ago

It takes enough time for the grid data to be loaded from Google Sheets for somebody to wonder "is this it?" Display a spinner while awaiting that data loads.

waldoj commented 8 years ago

Tabletop.js doesn't appear to have any kind of baked-in support for this, but surely there's a jQuery way to do this.

waldoj commented 8 years ago

OK, I think this is pretty straightforward. See this example.

waldoj commented 8 years ago

Basically, we display a GIF in the table, and just hide that GIF when Tabletop.init() finishes.

stvnrlly commented 8 years ago

There's also a library available for this, if you want to go that route: https://fgnass.github.io/spin.js/

waldoj commented 8 years ago

Oh, that seems civilized. Thanks!