You can use progress monitor with web workers specification that defines an API for spawning background scripts in your web application. Workers allow you to do things like fire up long-running scripts to handle computationally intensive tasks, but without blocking the UI or other scripts to handle user interactions an show progress monitoring according to running jobs.