Continuations
By utilizing pseudo-continuations, you can create psuedo-threads in which multiple threads can maintain their own call stack and frames to maintain, as they yield for various asynchronous events such as remote calls, timeout intervals, and user interaction. The continuation framework Narrative JavaScript provides the means for JavaScript to be precompiled and support continuations. With continuations multiple pseudo-threads can resume and yield, therefore simulate threading. Authenteo is a JavaScript framework and WCM built on Narrative JavaScript that automates the compilation process necessary for continuation support. Authenteo uses a multiple threaded approach for dynamically rendering elements of a page as remote calls are fulfilled.