Add and manipulate loading states of any element on the page.
Install it:
$ bower install jquery-loading
Include it:
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="jquery.loading.js"></script>
<!-- [optional] Include the CSS file to use the plugin default themes and loaders -->
<link href="jquery.loading.css" rel="stylesheet">
Use it:
$("#some-element").loading();
Visit the website for full list of options, methods and customization.