Don't check for $results.is(':hidden'), it breaks the spinner positioning when shown for the first time.