Loading spin
This script has less than 1 Kbyte
The jSuites.loading
is a lightweight JavaScript loading spin control. The example below will show the loading spin for 2 seconds.
The loading will stop after two seconds
Source code
<html> <script src="https://jsuites.net/v3/jsuites.js"></script> <link rel="stylesheet" href="https://jsuites.net/v3/jsuites.css" type="text/css" /> <input type='button' value='Show the loading' onclick="show()" class='jbutton dark'> <script> var show = function() { // Show the loading spin jSuites.loading.show(); // Hide the loading spin after two seconds setTimeout(function() { // Hide jSuites.loading.hide(); }, 2000); } </script> </html>