Progress
Loading Progress
Loading progress is a progress bar that can be changed via Javascript.
Examples of Usage
Start the Bar
NProgress.start();
Increment a little bit
NProgress.inc();
From 0% to 100%
NProgress.done(true);
Stop the Bar
NProgress.done();
Set Percentual
NProgress.set( PERCENTUAL / 100 );
Set to 50 and use callbacks
NProgress.set( 0.5, {
onInit: function() {
alert('initializing');
},
onFinish: function() {
alert('finished');
}
})