~/talk

How Google Search renders the web - a look behind the curtain

Talkat JavaScript fwdays'20 · on Saturday, 2020-03-14· [web-platform, web-performance]
slides:none on file

Google Search uses a Web Rendering Service that runs headless evergreen Chrome in a managed pool, collects a render tree not pixels, and intentionally skips painting; cookies and service workers are cleared or rejected so renders mimic first-time visitors. Median queue time is about 5s, caching rates are around 60–70%, rendering cutoffs vary, and tests hit WRS directly without the cache. The system aims for deterministic outputs (fixed random seed) and per-render metrics for indexing.

AI-written summary · about

  1. 0:00Intro
  2. 0:59What we'll talk about today...
  3. 2:26An example: Parsing into DOM tree DOM tree body
  4. 3:54An example: DOM tree to layout
  5. 6:24An example: Painting
  6. 7:52Hello, JavaScript
  7. 9:14Basically...
  8. 9:53A lay of the land
  9. 10:37Our focus today
  10. 11:10WRS - 10,000ft view
  11. 11:48Let's build a simple WRS w/ puppeteer const page = await browser.newPage()
  12. 15:24Actually that's more like it...
  13. 15:59By the way...
  14. 16:48But wait, there's more...
  15. 19:11WRS DOM tree (excerpt)
  16. 19:49WRS render tree (excerpt)
  17. 20:03A glimpse into the renderer
  18. 25:07Rendering time
  19. 25:58It's hard to measure this externally
  20. 28:35Use simple, clean caching
  21. 29:28Sample with Webpack
  22. 29:45Reduce resource requests
  23. 30:10Code bundling
  24. 30:56Code splitting, Vue.js example
  25. 31:15Code splitting, Webpack config module.exports
  26. 32:05Let's recap
~/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.