Service Worker Development Cookbook( Paperback)

Sean Amarasinghe

  • 出版商: Packt Publishing
  • 出版日期: 2016-08-31
  • 售價: $2,170
  • 貴賓價: 9.5$2,062
  • 語言: 英文
  • 頁數: 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

商品描述(中文翻譯)

主要特點


  • 透過逐步指南,立即開始使用服務工作者

  • 了解服務工作者對您的應用程式有何幫助,然後實際應用

  • 首次深入研究這項對網頁開發人員重要的新功能

書籍描述

擁有能夠離線運作並發送推播通知的網頁應用程式將是一件美好的事情。現在,透過服務工作者,您可以在不需要下載的情況下,為您的網頁應用程式增加類似原生應用程式的功能。

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

我們將向您展示如何為網頁應用程式和網站新增服務工作者功能,透過基本和高級技術存取離線內容,並建立強大的互動系統通知。我們還將教您有關快取功能和資源的知識,以便即使在狹窄的連線下也能實現即時載入。最後,我們將提供各種改善應用程式效能的技巧,包括背景同步技術。

通過閱讀本書,您將學會如何使用服務工作者建立高效能和更快速的網頁和行動應用程式。

您將學到什麼


  • 顯示自訂離線頁面

  • 為離線使用快取重要資源

  • 實現離線 Google Analytics

  • 在離線狀態下取得網路回應

  • 實現推播通知

  • 改善應用程式效能

關於作者

Sean Amarasinghe 是來自澳洲墨爾本的軟體開發人員。他是一位開發者、設計師、攝影師和部落客。他的部落格涵蓋開發、設計、科技和攝影等主題。他對離線應用程式及其為使用者帶來的好處充滿熱情,並且有著離線應用程式運作的第一手經驗。他曾撰寫過幾篇關於離線快取清單和服務工作者的部落格文章。

目錄


  1. 學習服務工作者基礎知識

  2. 處理資源檔案

  3. 存取離線內容

  4. 使用高級技術存取離線內容

  5. 超越離線快取

  6. 使用高級函式庫

  7. 擷取資源

  8. 實驗 Web Push

  9. 一般使用情境

  10. 改善效能