CoolConfucius / stories-epic

0 stars 0 forks source link

Loading Spinner #51

Open CoolConfucius opened 8 years ago

CoolConfucius commented 8 years ago

Eugene: "Very cool! I like what I see. One word of advice is you might want to consider adding a loading spinner for requests since there's no feedback given for things like logging in, posting stories, etc.

"This is relatively easy to do. You have a static, fixed position div somewhere on the page, and you manage its display CSS attribute (display: none or display: block for example) based on whether or not a request has completed. You'll have to do some reading on how to determine when a request is done, but basically for most frameworks, a callback function should be available to you, and that's where you can do a simple $('#loader').hide() or equivalent."

CoolConfucius commented 8 years ago

Angular loading spinner:

http://fgnass.github.io/spin.js/ http://plnkr.co/edit/PUjrEIt0YLTwr0rUInv8?p=preview