I want to benchmark some Javascript code in the browser, but it may trigger Firefox\'s \"Warning: Unresponsive script\" popup. This allows the user to click \"Stop script\"
You have to break up long actions into smaller ones and perform them in turns. This will also allow a better progress indication.
http://www.sonofsofaman.com/hobbies/code/settimeout.asp