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

HTML5 workers is a very interesting concept for avoiding a locked up user-interface.

For a shop application I'm listing a larger amount of product-widgets for which I have to activate functionality, using jQuery bindings.

Would I be able to use web workers to perform this task so that the page will responsive much sooner?

The support for web workers is lacking in IE but would be be possible to implement/simulate something simular until support arrives?

I found this implementation for IE and older browsers


Yes, web workers don't lock the DOM, so using them speeds up rendering.

The only alternative to web workers is using a succession of short functions called with window.setTimeout, but this will lock the DOM.

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

So basically, because you need to access the DOM. Split your tasks up into fairly large parts (50ms at most) then put each part in a window.setTimeout and let the browser schedule them. If the parts are too small the browser will waste time.

Need Your Help

iPhone: Core Location to keep asking for user permission

iphone objective-c permissions

I have an app that ask for user's Location. Then user's location will be send to a server. Since the app that was run on first time on a iPhone will ask for permission, if a user rejects it, the ap...

How to create or execute MySQL Procedure in Zend-Framework?

php zend-framework zend-db

In my Zend-Framework project, I want to execute a MySQL Procedure that perform some complex search operation's.