Skip to content

Instantly share code, notes, and snippets.

@dacur
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save dacur/9ff8b98879bbed3f7c2b to your computer and use it in GitHub Desktop.

Select an option

Save dacur/9ff8b98879bbed3f7c2b to your computer and use it in GitHub Desktop.
Adding a 'loading.gif' while something is happening on the page (e.g. waiting for search results).
$("#searchloading").html("<img src='/assets/loader.gif' alt='loading...' />");
// then:
$("#searchloading").css("display", "none");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment