Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ul> <li><p><a href="http://ejohn.org/about/" rel="noreferrer">John Resig</a> (of jQuery fame) has <a href="http://ejohn.org/blog/web-workers/" rel="noreferrer">a bunch of interesting examples of using web workers here</a> - games, graphics, crypto.</p></li> <li><p>Another use is Web I/O - in other words, polling URLs in background. That way you don't block the UI waiting for polling results.</p></li> <li><p>Another practical use: in Bespin, they’re using Web Workers to do the syntax highlighting, which you <em>wouldn’t</em> want to block your code editing whilst you’re using the app.</p></li> <li><p>From <a href="https://developer.mozilla.org/En/Using_web_workers" rel="noreferrer">Mozilla</a>: One way workers are useful is to allow your code to perform processor-intensive calculations without blocking the user interface thread. </p> <p>As a practical example, think of an app which has a large table of #s (this is real world, BTW - taken from an app I programmed ~2 years ago). You can change one # in a table via input field and a bunch of other numbers in different columns get re-computed in a fairly intensive process. </p> <p>The old workflow was: Change the #. Go get coffee while JavaScript crunches through changes to other numbers and the web page is unresponsive for 3 minutes - after I optimized it to hell and back. Get Back with coffee. Change a second #. Repeat many times. Click SAVE button.</p> <p>The new workflow with the workers could be: Change the #. Get a status message that something is being recomputed but you can change other #s. Change more #s. When done changing, wait till status changes to "all calculations complete, you can now review the final #s and save".</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload