Lesson 7 of 9
Progressive Web App (PWA) Basics
Progressive Web Apps (PWAs) are websites that behave like native apps - installable on home screen, work offline, send push notifications. They're built with HTML, CSS, and JavaScript plus two key technologies: Web App Manifest (HTML) and Service Workers (JavaScript).
PWA Requirements
- Web App Manifest (manifest.json) - JSON file linked from HTML that defines app name, icon, theme color, and display mode.
- <link rel='manifest' href='manifest.json'> - Add this to your HTML head to register the manifest.
- Service Worker - JavaScript file that runs in the background. Caches assets for offline support.
- HTTPS required - PWAs only work on secure origins (and localhost for development).
- Installable - Users get an 'Install' prompt. App appears on home screen with your icon and splash screen.
- Offline support - Service Worker intercepts network requests and serves cached content when offline.
- Push notifications - Service Worker can receive push messages even when the app is closed.
- App-like experience - Full-screen display, custom theme color, no browser chrome. Feels like a native app.
Diagram
Loading diagram…
Service workers intercept network requests to serve cached responses when offline
Key Takeaways
- Progressive Web Apps (PWAs) are websites that behave like native apps - installable on home screen, work offline, send push notifications.
- Web App Manifest (manifest.json) - JSON file linked from HTML that defines app name, icon, theme color, and display mode.
- <link rel='manifest' href='manifest.json'> - Add this to your HTML head to register the manifest.
- Service Worker - JavaScript file that runs in the background. Caches assets for offline support.
Finished this lesson?
0 of 9 in Module 11