diff --git a/js/PageController.js b/js/PageController.js index 47ac095..c3fa92c 100755 --- a/js/PageController.js +++ b/js/PageController.js @@ -51,8 +51,17 @@ function PageController(){ _body.append(overlay); $(".pg-overlay-close").unbind() .click(_enableMainPage); + + if ($("#main_content").find("img").length > 0) { + $("#main_content img").on('load', function() { + NProgress.done(); + }); + }else{ + NProgress.done(); + } + }).always(function(){ - NProgress.done(); + });