A plugin for measuring startup time with minimal performance impact.
dist | ||
pages/api | ||
test | ||
ts | ||
.bithoundrc | ||
.gitignore | ||
.gitlab-ci.yml | ||
.npmignore | ||
LICENSE | ||
npmextra.json | ||
package.json | ||
README.md | ||
tslint.json |
early
minimal and fast loading animation for modules that need a little starting time.
Availabililty
Status for master
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.