Web Workers. Multithreaded Programs in JavaScript - Helion
ISBN: 978-14-493-2209-0
stron: 62, Format: ebook
Data wydania: 2012-05-24
Księgarnia: Helion
Cena książki: 63,74 zł (poprzednio: 74,99 zł)
Oszczędzasz: 15% (-11,25 zł)
Web apps would run much better if heavy calculations could be performed in the background, rather than compete with the user interface. With this book, you’ll learn how to use Web Workers to run computationally intensive JavaScript code in a thread parallel to the UI. Yes, multi-threaded programing is complicated, but Web Workers provide a simple API that helps you be productive without the complex algorithms.
If you have an intermediate to advanced understanding of JavaScript—especially event handling and callbacks—you’re ready to tackle Web Workers with the tools in this example-driven guide.
- Start creating Web Workers and understand what they can and can’t do
- Determine which browser versions support the API
- Use dedicated Web Workers for tasks that consume a lot of CPU, such as data parsing
- Explore use cases for creating inline Workers, such as encapsulating a web app in one page
- Create a shared Worker to communicate multiple web app instances to the server, and other uses
- Learn best practices for debugging Web Workers
- Apply Web Workers within the server-side Node environment
Osoby które kupowały "Web Workers. Multithreaded Programs in JavaScript", wybierały także:
- D3.js w akcji 67,42 zł, (20,90 zł -69%)
- Tablice informatyczne. Node.js 16,86 zł, (5,90 zł -65%)
- React i GatsbyJS. Kurs video. Nowoczesne strony internetowe w oparciu o headless CMS i GraphQL 148,98 zł, (59,59 zł -60%)
- TypeScript i React. Kurs video. Tworzenie nowoczesnych komponent 129,00 zł, (51,60 zł -60%)
- Vue.js w praktyce. Kurs video. Poznaj narz 148,98 zł, (59,59 zł -60%)
Spis treści
Web Workers. Multithreaded Programs in JavaScript eBook -- spis treści
- Web Workers
- Dedication
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Preface
- How This Book Is Organized
- Who This Book Is For
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Overview
- What Can Web Workers Do?
- Creating a Worker
- What Web Workers Can and Cant Do
- Worker Execution
- Web Workers API Browser Availability
- 2. How and Where Can We Use Web Workers?
- Loading External Scripts
- 3. Dedicated Workers
- Control Your Web Workers
- Parsing Data with Workers
- Transferable Objects
- 4. Inline Workers
- 5. Shared Workers
- 6. Debug Your Workers
- Debugging in Chrome Dev Tools
- 7. Web Workers Beyond the Browser: Node
- Processes
- Communications
- Message Format
- Code
- API
- Additional Resources
- About the Author
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Copyright