Time for action — adding a loading animation

Next, we'd like to show the site visitor that something is happening as soon as they click on the link in the navigation. Remember that if the response from the server is slow, the site visitor can't see that anything is happening. Even though the browser is hard at work fetching the content for the new page, there's no indication to the site visitor that anything is happening. Let's add in a little animation to make it obvious that something's happening on our page.

Loading animations can take many different forms: spinning daisies, animated progress bars, blinking dots — anything that will communicate that there's an action in progress will help make your site feel snappier and more responsive for ...

Get jQuery for Designers Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.