I have a fairly CPU-intensive script which, when run, freezes the whole page for a while, so that it can't be scrolled or clicked, etc. I would gladly sacrifice performance for a more smooth experience.
Also, in my case, this script is a part of Google Chrome extension.
Is it possible to make a script that freezes the page run in background, without interrupting user interaction with the page?