Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Let Your Browser Take a Breather with Scheduler.yield()

Conf42 via YouTube

Overview

Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
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

Reviews

Start your review of Let Your Browser Take a Breather with Scheduler.yield()

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.