--- url: "https://web.dev/articles/codelab-service-workers" titulek: "Working with service workers | Articles | web.dev" h1: "Working with service workers Stay organized with collections Save and categorize content based on your preferences." popis: "In this codelab, learn how to make an application reliable by registering a service worker." jazyk: "en" kanonicka: "https://web.dev/articles/codelab-service-workers" drobecky: ["Articles", "Working with service workers"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:05:02" znaku: 7646 slov: 1132 kodovani: "iso-8859-2" sha256: "357fcbfa89e773587758c0e33240c6f4379cb691ebeb6d8b3e6465a5ac92bb0d" --- Working with service workers Stay organized with collections Save and categorize content based on your preferences. Jeff Posnick This codelab shows you how to register a service worker from within your web application, and use the Chrome DevTools to observe its behavior. It also covers some debugging techniques that you might find useful when dealing with service workers. Get familiar with the sample project The files in the sample project most relevant to this codelab are: `register-sw.js` starts out empty, but it will contain the code used to register the service worker. It's already being loaded via a `