Once I made a webpage where user had to wait for some background process to end in order to show results, so I made a progress bar that just goes to 90% at some predetermined by me rate (without any connection with actual job made by that background process), then waits at at 90% and when process is done I quickly advance progress bar to 100%. Worked flawlessly.