javascript - HTML5 web workers for binding jQuery events (what about IE?) -


html5 workers interesting concept avoiding locked user-interface.

for shop application i'm listing larger amount of product-widgets have activate functionality, using jquery bindings.

would able use web workers perform task page responsive sooner?

the support web workers lacking in ie be possible implement/simulate simular until support arrives?

i found implementation ie , older browsers http://code.google.com/p/ie-web-worker/

yes, web workers don't lock dom, using them speeds rendering.

the alternative web workers using succession of short functions called window.settimeout, lock dom.

edit: ie alternative found isn't quite same. because doesn't perform pre-emptive multitasking (how can it), if run long running script browser think page had crashed whereas wouldn't in chrome, firefox etc.

so basically, because need access dom. split tasks large parts (50ms @ most) put each part in window.settimeout , let browser schedule them. if parts small browser waste time.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -