~/talk

Service Workers & Cows — a love story

Talkat iJS 2018 Spring · 2018-04-11..04-13· [web-platform, pwa]
slides:none on file

Shows how to add a service worker to an Angular app end to end: yarn/npm install, set "serviceWorker": true in angular.json, import and call ServiceWorkerModule.register in app.module, run ng build --prod and serve the dist folder (http-server or Python) and use --proxy to hit the backend. Demonstrates creating a dataGroup in ngsw-config.json to cache API routes, tests offline, and resolves stale-assets by choosing cache-first (performance) vs freshness. Notes that service worker is just a JavaScript file and to enable only in production; works on painfully slow ~6 Mbps networks.

AI-written summary · about

  1. 0:00Intro
  2. 2:23Background
  3. 4:20Network Speed
  4. 5:28Service Workers
  5. 8:33Steps
  6. 12:35Update Issues
  7. 16:05Build the Project
  8. 17:23NG Serve
  9. 18:13Running the project
  10. 22:58Updating
  11. 30:17Data Group
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.