I need examples for adding a throbber during page loads

crackedcornjimmy picture crackedcornjimmy · Mar 25, 2011 · Viewed 7.7k times · Source

Does someone have a code example of running an animated throbber during asp.net page loads? More than one example would be appreciated.

Answer

tamarintech picture tamarintech · Mar 25, 2011

A throbber is generally just an animated .gif that holds the place of content. When the content is loaded, that image is hidden or removed from the dynamic element and replaced with the actual content (or vice versa if you're making a form or similar).

Here's a link to the Facebook "throbber" - http://static.ak.fbcdn.net/rsrc.php/v1/zb/r/GsNJNwuI-UM.gif

Here's a link to a Wikipedia asset: https://upload.wikimedia.org/wikipedia/commons/d/de/Ajax-loader.gif

Matching article: https://en.wikipedia.org/wiki/Throbber

As you can see, it's an animated gif.

Update: If you're still using this for reference then please check out the CSS throbbers in various projects.