Browser gets blocked, workers to the rescue?

Posted by tb_selleo on Stack Overflow See other posts from Stack Overflow or by tb_selleo
Published on 2010-03-25T09:41:02Z Indexed on 2010/03/25 9:43 UTC
Read the original article Hit count: 257

Filed under:
|
|

Hello, I use JavaScript for rendering 20 tables of 100 rows each. The data for each table is provided by controller as JSON. Each table is split into section that have "totals" and have some other JavaScript logic code. Some totals are outside of the table itself.

As a result JavaScript blocks browser for a couple of seconds (especially in IE6) :(

I was consideting to use http://code.google.com/p/jsworker/, however Google Gears Workers (I guess workers in general) will not allow me to make changes to DOM at the worker code, and also it seems to me that I can not use jQuery inside jsworker worker code. (Maybe I am wrong here?).

This issue seems to be fundamental to the JavaScript coding practice, can you share with me your thoughts how to approach it?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html5