• Complain

Sean Amarasinghe - Service Worker Development Cookbook

Here you can read online Sean Amarasinghe - Service Worker Development Cookbook full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2016, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Sean Amarasinghe Service Worker Development Cookbook
  • Book:
    Service Worker Development Cookbook
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2016
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Service Worker Development Cookbook: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Service Worker Development Cookbook" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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.

Well 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. Well 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, youll 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

Sean Amarasinghe: author's other books


Who wrote Service Worker Development Cookbook? Find out the surname, the name of the author of the book and a list of all author's works by series.

Service Worker Development Cookbook — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Service Worker Development Cookbook" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Service Worker Development Cookbook

Service Worker Development Cookbook

Copyright 2016 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: August 2016

Production reference: 1260816

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78646-529-0

www.packtpub.com

Credits

Author

Sean Amarasinghe

Reviewer

Daijiro Wachi

Commissioning Editor

David Barnes

Acquisition Editor

Nitin Dasan

Content Development Editor

Mehvash Fatima

Technical Editor

Siddhi Rane

Copy Editors

Safis Editing

Tom Jacob

Project Coordinator

Kinjal Bari

Proofreader

Safis Editing

Indexer

Hemangini Bari

Graphics

Kirk D'Penha

Production Coordinator

Shantanu N. Zagade

Cover Work

Shantanu N. Zagade

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.

About the Reviewer

Daijiro Wachi is a JavaScript developer from Tokyo, Japan. He is passionate about open web and some of open source projects/communities related to JavaScript on a daily basis. He has gained the highest award in Service Worker Hackathon 2015 held by Google Japan.

www.PacktPub.com
eBooks, discount offers, and more

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

httpswww2packtpubcombookssubscriptionpacktlib Do you need instant - photo 1

https://www2.packtpub.com/books/subscription/packtlib

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why subscribe?
  • Fully searchable across every book published by Packt
  • Copy and paste, print, and bookmark content
  • On demand and accessible via a web browser
Preface

The service worker feature of the browser will enable you to build highly available and performant native web applications that seamlessly integrate with third-party APIs. Whether you want to create an offline web app or a proxy, this book will show you how to do it.

What this book covers

, Learning Service Worker Basics , covers setting up the service worker in your environment, and how to get up and running using service worker development. This chapter includes registering a service worker and debugging.

, Working with Resource Files , provides several recipes on how to handle resource files with the service worker, including loading CSS and fonts.

, Accessing Offline Content , takes a look at how to cache resources and serve content offline.

, Accessing Offline Content with Advanced Techniques , explores advanced techniques, including templating and Google Analytics, when working with offline content.

, Reaching Beyond the Offline Cache , provides recipes beyond the offline cache and explores topics ranging from getting network responses offline to how to use the service worker as a load balancer.

, Working with Advanced Libraries , talks about Google Analytics, circuit breakers, and dead letter queues.

, Fetching Resources , covers various techniques on fetching resources from different sources.

, Experimenting with Web Push , talks about different ways of implementing push notifications.

, Looking at General Usage , provides various recipes on general usages of the service worker from slow responses to a live flowchart.

, Improving Performance , talks about how to optimize your service worker application to perform efficiently and in a performant manner.

What you need for this book

This book was written using a Mac with Google Chrome as the browser, running Node.js. However, Node.js can be run on a Windows or Linux machine as well, along with Google Chrome.

All the software used in this book is free and open source. You will definitely need to be running Node.js and Google Chrome for most of the recipes.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The skipWaiting() method is used inside the active event handler, which in turn uses Clients.claim()."

A block of code is set as follows:

self.oninstall = function(event) { event.waitUntil( fetch(zipURL) .then(function(res) { return res.arrayBuffer(); }) .then(getZipFileReader) .then(cacheFileContents) .then(self.skipWaiting.bind(self)) );};

Any command-line input or output is written as follows:

$ git add all$ git commit -m "initial commit"$ git push -u origin master

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes, for example, appear in the text like this: "Finally, in the sidebar on the left-hand side, select Credentials ."

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this bookwhat you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail <>

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Service Worker Development Cookbook»

Look at similar books to Service Worker Development Cookbook. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Service Worker Development Cookbook»

Discussion, reviews of the book Service Worker Development Cookbook and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.