Search progress indicator

Source: https://gist.github.com/tmcw/5153896