JavaScript Threading: Quick Tip
You can’t really get a “new thread” in JS, but Mark shows you a simple way to pretend that you can.
The sorts of timing issues that this works around come up more often than you’d think; the AJAX example I’m writing up attacked the problem by building function literals on the fly based on things that were happening in a callback, and then subscribing them to the completion of an animation event :)
Comments for this link are closed. If you'd like to share your thoughts on this link with me, please contact me directly.