Add and manipulate loading states of any element on the page.
Install it, using Bower:
$ bower install jquery-loading
Or using npm:
$ npm install --save jquery-easy-loading
Include it:
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="jquery.loading.js"></script>
<!-- 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.