early/README.md
2016-05-23 05:17:02 +02:00

17 lines
459 B
Markdown

# early
minimal and fast loading animation for modules that need a little starting time.
## Usage
```typescript
// Put the following at the start of your module
import * as early from "early";
early.start("myModuleName");
/*
do your loading stuff
*/
early.stop(); // stop "early" when your module is ready
```
early runs in its own process: The loader animation runs smoothly even when your event queue of your currently loading module is working heavily.