~/talk

Supercharge your web app with the modular Firebase JS SDK

Talkat Google I/O 2021 · 2021-05-18..05-20· [javascript, web-performance]
slides:none on file

A hands‑on migration shows rewriting Firebase JS SDK v8 to the modular v9, converting a stock‑watch web app with npm, Chrome and VS Code, replacing compat imports, then moving Firestore to Firestore Lite and lazy‑loading real‑time code. Bundle numbers drop from 138 KB → 35.2 KB gzip (446 → 118 raw) after incremental changes; auth-only and full modular steps hit 103→350 and 74.8→245. Claim: the final app is 75% smaller and preserves the same features, with real‑time streaming restored via dynamic import.

AI-written summary · about

  1. 0:00Start
  2. 4:37Install the Dependencies
  3. 6:03Build the App
  4. 6:31Start a Local Web Server
  5. 17:08Manual Integration Test
  6. 18:48Upgrade Only Firebase Auth to the Module Api
  7. 19:14Upgrade Firebase
  8. 23:03Rebuild the App and Check the Size
  9. 26:03Upgrade Firebase App and the Firestore to the Module Api
  10. 31:30Delete from Watchlist
  11. 32:19Subscribe to Ticker Changes
  12. 35:13Limit Constraint
  13. 46:43Create a Firestore Instance
  14. 50:04Initial Page Rendering
  15. 52:38Subscribe to Real-Time Updates
  16. 53:16Dynamic Input
  17. 54:59Update the Else Block
  18. 56:05Rebuild the App
~/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.