The loading plugin overlays a "waiting spinner" over an element that is typically being called through ajax or hijack
Include script after the jQuery library (unless you are packaging scripts in an alternative manner):
<script src="/path/to/jquery.loading.js"></script>
Start the loading
$('#foo').loading();
Stop the loading
$('#foo').loading();
-
delay [Number:250]
Sets a delay (in milliseconds) on when the loading icon will appear. This helps prevent "flashing" of the content in cases where the response might be very quick.
-
css [Object:{'opacity':'.75','background-color':'#ffffff','z-index':'99'}]
Sets the css attributes for the loading overlay.
-
img [Object:{'src':'/images/mozilla_blue.gif','width':'16','height':'16','border':'0'}]
Sets the img attributes for the loading image.
-
includeBorder [Boolean:true]
Sets whether or not to include the target element border.
-
imgInViewport [Boolean:true]
Sets whether or not the loading image is centered in the viewport relative to the div.
- Source hosted at GitHub
- Report issues, questions, feature requests on GitHub Issues