The Fastest Way to Become a Backend Developer Online
Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
Learn how to optimize JavaScript performance and improve user experience by implementing Scheduler.yield() to prevent browser blocking during heavy computations. Explore the fundamentals of JavaScript task processing and discover why long-running tasks can freeze browser interfaces, making applications unresponsive to user interactions. Understand the core problem through simulated heavy computation examples and witness firsthand how blocking tasks affect user experience. Examine various solutions for managing computational workloads before diving deep into the Scheduler.yield() API as a modern approach to yielding control back to the browser. Discover the Prioritized Task Scheduling API and learn how to implement task prioritization strategies that maintain smooth user interfaces while processing intensive operations. Apply these concepts through a practical banking application demonstration that showcases real-world implementation scenarios where performance optimization is critical for user satisfaction.
Syllabus
00:00 Introduction and Speaker Background
01:11 Understanding Scheduler Yield
02:00 JavaScript Task Processing Basics
02:42 The Problem with Long Tasks
05:37 Simulating Heavy Computation
07:55 Demonstrating the Problem
11:32 Exploring Solutions
15:56 Introducing Scheduler Yield
18:26 Prioritized Task Scheduling API
21:49 Practical Demo: Banking Application
27:00 Conclusion and Final Thoughts
Taught by
Conf42