Home Forums Porto Admin Template Loading Progress

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10030775
    mushi
    Participant

    how to use Loading Progress in my page. it should be keep progressing until the page/elements fully load.



    Template Version: 2.2.0
    #10030782
    Support2
    Keymaster

    Hello,

    First include the NProgress JS script on footer of page:

    <script src="vendor/nprogress/nprogress.js"></script>

    Add in (js/custom.js):

    $(window).on('load', function(){
       setTimeout(function(){
    	   NProgress.done(true);
    	}, 1000);
    });
    
    $(document).ready(function() {
       NProgress.start();
    });

    Please try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)