GithubHelp home page GithubHelp logo

kimlv / sw-101-gdgdf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huxpro/sw-101-gdgdf

0.0 1.0 0.0 8.39 MB

Slides: Service Worker 101 @ GDG DevFest 2016

Home Page: https://huangxuan.me/sw-101-gdgdf/

License: Other

HTML 96.44% JavaScript 3.48% Shell 0.07%

sw-101-gdgdf's Introduction

Service Worker 101

Working Offline and Instant Loading (@GDG DevFest 2016)

What is in code/

  • Hello World of Service Worker
  • Make your own Offline Dinosaurs
  • Stale/Fastest while revalidate

What is covered

TLDR; All the fundamental stuffs of SW to help your site work offline and load instantly.

It covers techniques below, but in a step-by-step order:

  • Motivation
    • Why AppCache & H2 is insufficient
  • How SW works
    • Web Workers
    • Shared Workers
    • Background Processing
    • Event-Driven
  • LifeCycle
    • SW state
    • First SW
    • Updating SW
  • Events
    • LifeCycle Events
    • Functional Events
    • Extendable Events
  • Caching Strategies
    • Network First
    • Cache First
    • Generic Fallback
    • Fatest (Racing)
    • Stale while revalidate
    • Fastest while revalidate
    • Cache then network
  • Gotchas
  • Etc.

Notes

This slides is powered by Yanshuo.io (演说.io), a online software helping you create, store and share web slides.

There are 2 ways that you can fork or contribute to this project:

  1. index.html is the HTML source code exported from Yanshuo.io, and many of its dependencis (js, css, fonts) are still linked to CDN of Yanshuo.io. You can do any secondary development and host it by yourself.
  2. Download the project file under shuo/, drag it into Yanshuo.io, and you are ready to go. You can edit whatever you want, upload it to your account, and even share your distributions.

License

BSD Copyright (c) 2016 Hux

sw-101-gdgdf's People

Contributors

huxpro avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.