Omar Reyes
Omar Reyes

Reputation: 31

How to show a spinner while backbone view is rendering?

I have to render a Backbone view with a lot of information, but I'd like to show an animation (spinner) while the information is rendering, can anyone help me please.

Upvotes: 3

Views: 566

Answers (1)

Scott Mermelstein
Scott Mermelstein

Reputation: 15397

Make a div that has a spinner, show it before you render your information, and hide it when you're done.

You can even grab some css-only spinners with a simple google search, or use the spin.js javascript tool.

I'd need to see some code or know of a specific problem with what you're doing to give you better information.

Upvotes: 1

Related Questions