diff --git a/nprogress.js b/nprogress.js index b93800a..43d58c0 100644 --- a/nprogress.js +++ b/nprogress.js @@ -125,7 +125,7 @@ if (!NProgress.status) return; NProgress.trickle(); work(); - }, Settings.trickleSpeed); + }, trickleSpeed()); }; if (Settings.trickle) work(); @@ -286,6 +286,14 @@ } }; + /** + * returns a random trickle speed value + * + * */ + function trickleSpeed(){ + return Math.random() * Settings.trickleSpeed * 2; + }; + /** * Helpers */