How to deal with heavy-load processing of displayed data in the browser?

Posted by Jessica Taylor | Updated on

Want to deal with heavy-load processing of displayed data in the browser? If your major concern is not to freeze UI during lengthy javascript processing you developed, you can refactor loop bodies into sequential steps, such that each step call its next by using window.setTimeout.

The function nonBlockingFor calls the first argument (as a function) the number of times passed as second argument. It’s definition follows:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers