My problem is I have a method which loading some datas. It took about 10-15 second until the website is loaded. I wanna add a progress bar to the site for the user to show him how long it takes to complete loading the website.
I made a progress bar with pace.js and added it to the .html. The problem is I need something in my controller because the html will start after my method is finished. At the moment I start my website the datas loading and after that my progress bar appears for a second. Could I add my script to a button or is there another solution?
Thanks