Acknowledgments |
Introduction |
Trouble in Paradise |
Who Is This Book For? |
Resources for Learning JavaScript |
Where to Turn for Help? |
Running the Code Examples |
Code Style in This Book |
A Word on altJS |
Resources for This Book |
1. | Understanding JavaScript Events |
Scheduling Events |
Types of Async Functions |
Writing Async Functions |
Handling Async Errors |
Un-nesting Callbacks |
What We’ve Learned |
2. | Distributing Events |
PubSub |
Evented Models |
Custom jQuery Events |
What We’ve Learned |
3. | Promises and Deferreds |
A Very Brief History of Promises |
Making Promises |
Passing Data to Callbacks |
Progress Notifications |
Combining Promises |
Binding to the Future with pipe |
jQuery vs. Promises/A |
Replacing Callbacks with Promises |
What We’ve Learned |
4. | Flow Control with Async.js |
The Async Ordering Problem |
Async Collection Methods |
Organizing Tasks with Async.js |
Dynamic Async Queuing |
Minimalist Flow Control with Step |
What We’ve Learned |
5. | Multithreading with Workers |
Web Workers |
Node Workers with cluster |
What We’ve Learned |
6. | Async Script Loading |
Limitations and Caveats |
Reintroducing the <script> Tag |
Programmatic Loading |
What We’ve Learned |
A1. | Tools for Taming JavaScript |
TameJS |
StratifiedJS |
Kaffeine |
Streamline.js |
Node-Fibers |
The Future of JavaScript: Generators |
3.15.219.174