SERVICE WORKERS

DISCLAIMER

PURPOSES
IDEA
USAGE

WAS IT BEFORE?

WEB WORKERS

WEB WORKERS

WHY DO WE NEED THIS?

  • Offline-first
  • Cache
  • Programmable Cache!
  • Background Processing                 (kinda milthithreading)
  • Push Messages
  • Async DBAccess

ARCHITechture

LifeCycle

Some Details

Installation

Registration

oninstall event

Activation

onactivate event

Activated

Redundant

events

Lifecycle events

  • install
  • activate
  • message

Functional events

fetch    sync   push

 NO DOM ACCESS
 SPECIFIC GLOBAL SCOPE
 PROMISES                 ROBUST API          Require https          Same origin

USAGE

SO can i use it?

DEMO TIME!

Any questions?

THANK YOU THOU!

Resources

Service Workers overview

By diodredd

Service Workers overview

  • 377