diff --git a/lib/persona.js b/lib/persona.js index d91311e..1bb00c8 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -1,6 +1,6 @@ "use strict"; -/*globals config, utils*/ +/*globals config, utils, NProgress*/ $(document).ready(function() { setupSlideMenu(); @@ -46,7 +46,11 @@ $(document).ready(function() { }); $(window).on('action:ajaxify.loadingData', function() { - NProgress.set(0.6); + NProgress.set(0.4); + }); + + $(window).on('action:ajaxify.dataLoaded', function() { + NProgress.set(0.8); }) $(window).on('action:ajaxify.end', function() {