JavaScript in the Background

JavaScript in the Background

Learning Paths:
4 hours, 59 minutes CC

What happens to your JavaScript when the user closes their browser or leaves your web app in the background? Explore new capabilities for your web app to detect these changes and execute code later. Improve user experience through things like updating the user, saving and restoring state, or processing pending operations. Plus, using the Web Push API, you can enable users to subscribe to receive real-time push notifications from your web app.

This course and others like it are available as part of our Frontend Masters video subscription.

Published: January 12, 2023
Get Unlimited Access Now
Table of Contents

Introduction

Web App Lifecycle

Service Worker Background APIs

Service Workers

Waking Up Background JavaScript

Push Notifications

Wrapping Up