busy-wait-cursor
v1.0.3
Published
display wait cursor when browser is busy
Downloads
3
Readme
BUSY-WAIT-CURSOR
Display wait cursor and disable user interaction when broswer is busy
Install
npm i busy-wait-cursor
Usage
import Busy from "busy-wait-cursor";
Busy.wait().then(done => {
// do something
done();
});
// or
(async () => {
await Busy.wait();
await new Promise(resolve => {
setTimeout(function() {
resolve("done");
}, 5000);
});
Busy.done();
})();
Known Issues
Cursor won't change if dev tools is open