Service Worker Development Cookbook( Paperback)
暫譯: Service Worker 開發食譜(平裝本)

Sean Amarasinghe

  • 出版商: Packt Publishing
  • 出版日期: 2016-08-31
  • 售價: $2,220
  • 貴賓價: 9.5$2,109
  • 語言: 英文
  • 頁數: 384
  • 裝訂: Paperback
  • ISBN: 1786465299
  • ISBN-13: 9781786465290
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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

  1. Learning Service Worker Basics
  2. Working with Resource Files
  3. Accessing Offline Content
  4. Accessing Offline Content with Advanced Techniques
  5. Reaching Beyond the Offline Cache
  6. Working with Advanced Libraries
  7. Fetching Resources
  8. Experimenting with Web Push
  9. Looking at General Usage
  10. Improving Performance

商品描述(中文翻譯)

#### 主要特點
- 透過逐步的食譜直接進入行動,展示如何讓 Service Workers 發揮作用
- 了解 Service Workers 能為您的應用程式做什麼,然後實現它!
- 首次深入了解這個對網頁開發者來說重要的新功能

#### 書籍描述
擁有能離線運作並發送推播通知的網頁應用程式將會很棒。這現在可以透過 Service Workers 實現,這些工具可以為您的網頁應用程式添加類似原生應用的功能,而無需下載。

本書將使您的行動和網頁應用程式在沒有網際網路連接的情況下運行,改善性能和網路互動,以提高可用性,並展示如何構建高效能的應用程式,無縫整合第三方 API。

我們將展示如何將 Service Worker 功能添加到網頁應用程式和網站,通過基本和進階技術訪問離線內容,並構建強大的互動系統通知。我們還將教您有關快取功能和資源的知識,以便即使在狹窄的連接下也能提供即時加載。我們最後會提供各種提示來改善應用程式性能,包括背景同步技術。

在本書結束時,您將能夠使用 Service Workers 構建高效能和更快速的網頁及行動應用程式。

#### 您將學到的內容
- 顯示自訂的離線頁面
- 快取關鍵資源以供離線使用
- 實現離線 Google Analytics
- 獲取離線的網路回應
- 實現推播通知
- 改善應用程式的性能

#### 關於作者
**Sean Amarasinghe** 是來自澳洲墨爾本的軟體開發者。他是一名開發者、設計師、攝影師,還是一名部落客。他的部落格內容涵蓋開發、設計、技術和攝影。他對離線應用程式及其為用戶帶來的價值充滿熱情。他對離線應用程式的運作有第一手的經驗。他曾撰寫幾篇有關離線快取清單和 Service Workers 的部落格文章。

#### 目錄
1. 學習 Service Worker 基礎
2. 處理資源檔案
3. 訪問離線內容
4. 使用進階技術訪問離線內容
5. 超越離線快取
6. 使用進階函式庫
7. 獲取資源
8. 實驗 Web Push
9. 檢視一般使用情況
10. 改善性能