~/talk

Fixing common Web Vitals issues

Talkat Chrome Dev Summit 2020 · 2020-12-09..12-10· [web-performance]
slides:none on file

CLS is computed by a PerformanceObserver that sums layout-shift entries and only finalizes on a document visibilitychange to hidden, with shifts within 500 ms of most user input excluded (scrolling is not excluded). DevTools offers layout shift regions for debugging, and fixing often means adding width/height to images/iframes or changing UX like top banners. Lazy-load third-party scripts with IntersectionObserver or time after first paint (setTimeout is only a minimum); consider tag-manager restrictions. For RUM, use web-vitals JS or CloudFlare Browser Insights and Search Console URL groups for page-level data.

AI-written summary · about

  1. 0:00Start
  2. 0:57Calculating CLS
  3. 1:27Reporting CLS
  4. 5:30UX patterns can be a source of CLS.
  5. 6:23Lazy-loading 3P scripts
  6. 8:06Google Tag Manager
  7. 8:32Differences between tools
  8. 10:16Collect your own RUM
~/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.