early/README.md

16 lines
313 B
Markdown
Raw Normal View History

2016-05-19 23:25:17 +00:00
# early
2016-05-21 22:38:14 +00:00
minimal and fast loading animation for modules that need a little starting time.
2016-05-19 23:25:17 +00:00
2016-05-21 22:38:14 +00:00
## Usage
2016-05-19 23:25:17 +00:00
2016-05-21 22:38:14 +00:00
```typescript
// Put the following at the start of your module
2016-05-19 23:25:17 +00:00
import * as early from "early";
2016-05-21 22:38:14 +00:00
early.start("myModuleName");
/*
do your loading stuff
*/
early.stop(); // stop "early" when your module is ready
2016-05-19 23:25:17 +00:00
```