Service Worker Development Cookbook
- Length: 572 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2016-11-04
- ISBN-10: 1786465299
- ISBN-13: 9781786465290
- Sales Rank: #1950461 (See Top 100 Books)
Key Features
- Get straight into the action with step-by-step recipes that show you how to put Service Workers to work
- Find out what Service Workers can do for your app, then do it!
- Get the first in-depth look at this important new feature for web developers
Book Description
It would be nice to have web apps that work offline and send push notifications. This is now possible with Service Workers, which can add native-like functionality to your web apps without requiring a download.
This book will get your mobile and web apps functioning without Internet connectivity, improve performance and network interaction in order to increase the level of availability, and show you how to build performant applications that seamlessly integrate with third-party APIs.
We’ll show you how to add Service Worker functionality to web apps and sites, access offline content through basic and advanced techniques, and build powerful interactive system notifications. We’ll also teach you about cache functionality and assets to provide immediate load even over narrow connections. We conclude by giving you various tips to improve app performance, including the background sync technique.
By the end of this book, you’ll know build high performing and faster web and mobile applications with Service Workers.
What you will learn
- Display a custom offline page
- Cache critical resources for offline use
- Implement offline Google Analytics
- Get network responses offline
- Implement push notifications
- Improve performance of your app
About the Author
Sean Amarasinghe is a software developer from Melbourne, Australia. He is a developer, designer, photographer, and also a blogger. He blogs about development, design, technology, and photography. He is passionate about offline apps and what they bring to the user. He has firsthand experience of how well offline apps work. He has written a couple of blog posts about offline cache manifests, as well as service workers.
Table of Contents
Chapter 1: Learning Service Worker Basics
Chapter 2: Working with Resource Files
Chapter 3: Accessing Offline Content
Chapter 4: Accessing Offline Content with Advanced Techniques
Chapter 5: Reaching Beyond the Offline Cache
Chapter 6: Working with Advanced Libraries
Chapter 7: Fetching Resources
Chapter 8: Experimenting with Web Push
Chapter 9: Looking at General Usage
Chapter 10: Improving Performance