My application includes some Javascript code that requires a significant amount of computation. To ensure the UI remains responsive, I have divided the code into smaller chunks and utilized Angular's $timeout function to execute each chunk separately. This strategy works well in all browsers except Internet Explorer 8, where I encounter the frequent prompt "Stop running this script?"
I am looking for insights on how to determine IE8's threshold for acceptable script execution so that I can find a solution. While I am regularly returning control to the main thread to maintain responsiveness and avoid issues in other browsers, IE8 seems to present a unique challenge. There are no infinite loop scenarios or similar problematic code involved.