A plugin for measuring startup time with minimal performance impact.
Go to file
2016-09-15 14:59:33 +02:00
dist now passing required loading time through promise 2016-09-15 14:59:22 +02:00
pages/api now passing required loading time through promise 2016-09-15 14:59:22 +02:00
test now passing required loading time through promise 2016-09-15 14:59:22 +02:00
ts now passing required loading time through promise 2016-09-15 14:59:22 +02:00
.gitignore initial 2016-05-20 19:06:25 +02:00
.gitlab-ci.yml now removing readline correcctly 2016-06-11 23:47:52 +02:00
.npmignore fix 2016-08-20 08:06:41 +02:00
.travis.yml add travis 2016-05-21 20:35:14 +02:00
LICENSE Initial commit 2016-05-20 00:59:47 +02:00
npmextra.json add npmextra.json 2016-08-20 07:32:44 +02:00
npmts.json add npmts.json 2016-05-22 00:49:54 +02:00
package.json 2.0.28 2016-09-15 14:59:33 +02:00
README.md now passing required loading time through promise 2016-09-15 14:59:22 +02:00
tslint.json now adhering to standardjs 2016-09-15 14:45:58 +02:00

early

minimal and fast loading animation for modules that need a little starting time.

Usage

// Put the following at the start of your module
import * as early from "early";
early.start("myModuleName");
/*
do your loading stuff
*/
early.stop().then((loadingTime:number) => { // loadingTime in milliseconds

}); // 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.