~/talk

How I brought LCP down to under 350 ms

Talkat wroc_love.rb 2024 · 2024-04-12..04-14· [web-performance]
links:none on file
slides:none on file

Claims reducing Largest Contentful Paint to under 350 ms by shipping signed exchanges (SXG) and letting Google prefetch a cryptographically signed cached page. Implementation uses Cloudflare SXG support, Next.js/Rails hacks to set Cache‑Control (24h) and remove HSTS, moves session cookies and CSRF checks to client endpoints, rewrites asset URLs and limits to <=20 hashed subresources sent via Link headers, and detects prefetch success with a canary subresource. Demo shows LCP ~140 ms and measurements use SXG-tagged analytics to compare loaded vs failed prefetch cohorts.

AI-written summary · about

  1. 0:00Introduction to LCP optimization
  2. 3:59Demo of LCP improvement
  3. 10:16Why prefetching isn't used by Google
  4. 15:44Signed exchanges explained
  5. 20:03SXG implementation constraints
  6. 28:02Prefetching subresources for LCP
  7. 37:30Debugging SXG issues
  8. 42:01Testing SXG compatibility
  9. 46:00Measuring SXG impact
  10. 52:13Summary and benefits of SXG
~/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.