Toggling the view into its loading state before sending the Ajax request.