~/talk

Creating instant and seamless web apps with Chrome

Talkat Google I/O 2022 · 2022-05-11..05-12· [web-platform, web-performance]
speakerdeck:sisidovski
links:none on file
slides:none on file

Workshop shows a Next.js sample app upgraded to make navigation near-instant: it adds a speculation rules script and a prerender button so Chrome creates a hidden browsing context, makes analytics respect document.prerendering and the prerenderingchange event, removes unload handlers and replaces dev-only CCNS with cache-control: public so BFCache restores pages (DevTools back/forward cache test and page show persistent flag confirm it), writes a /.well-known/traffic-advice to opt into Private Prefetch Proxy, and wires root shared element transitions via document.createDocumentTransition, setElement and start — all demos run and animate instantly.

AI-written summary · about

  1. 0:00Workshop introduction
  2. 2:53Setup and environment
  3. 5:15Understanding pre-rendering
  4. 8:28Implementing pre-rendering
  5. 13:23Pre-render aware analytics
  6. 17:23Back/forward cache
  7. 20:03Unlocking bf cache
  8. 24:27Debugging bf cache
  9. 27:54Private prefetch proxy
  10. 30:10Implementing traffic advice
  11. 34:17Seamless transitions
  12. 36:57Implementing transitions
  13. 42:17Conclusion and resources
~/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.