Performance & Background APIs
Explore and learn about 8 JavaScript APIs in the Performance & Background category.
Background Tasks
Schedule and manage background tasks using the Background Tasks API. Learn how to perform tasks without blocking the main thread.
Intersection Observer
Efficiently detect element visibility and implement infinite scrolling, lazy loading, and scroll-based animations with the Intersection Observer API.
Page Visibility
Detect when a webpage becomes visible or hidden to the user, enabling better resource management and user experience optimization.
Performance
Measure and analyze web application performance using high-precision timing, resource timing, navigation timing, and user timing APIs.
Prioritized Task Scheduling
Schedule tasks with different priorities, enabling better control over when and how tasks are executed based on their importance.
Service Worker API
Service workers act as proxy servers that sit between web applications, the browser, and the network. They enable offline experiences, intercept network requests, and provide background features like push notifications.
Web Workers
Run JavaScript in background threads to perform CPU-intensive tasks without blocking the main UI thread. Includes dedicated workers, shared workers, and transferable objects.
Web Locks
Coordinate access to resources across multiple tabs or workers with the Web Locks API. Learn to prevent race conditions and ensure data consistency.