~/talk

Keeping Static Site Rendering Cool with React Hydration

Talkat React Rally 2020 · on Friday, 2020-08-14· [react, web-performance]
slides:none on file

Server-rendered React claims faster initial content and better SEO but hydration often breaks when browser-only data or JS-delivered CSS appear. Demonstrated tools and fixes include gatsby and react-dom hydrate, diagnosing with webpagetest filmstrips, removing font awesome external CSS and inlining equivalent styles to stop icon layout shifts, and using fresno or gatsby-image and HTML art direction to let CSS handle layouts and responsive images. The replicated CSS fix removes the jump and the site loads consistently as expected.

AI-written summary · about

  1. 0:00Intro
  2. 3:39WHAT IS SERVER-SIDE RENDERING (SSR)?
  3. 4:07WHY SERVER-SIDER RENDERING (SSR)?
  4. 4:26WHAT IS CLIENT-SIDE RENDERING (CSR)?
  5. 4:50CLIENT-SIDE RENDERED INITIAL DOM
  6. 5:23OVERVIEW OF SSR (IN STATIC CONTEXT)
  7. 8:10DEBUGGING SSG HYDRATION ISSUES
  8. 10:46IMMUTABLE LAYOUT
  9. 11:18CONDITIONAL RENDERING
  10. 13:25ERROR: WINDOW IS UNDEFINED
  11. 14:41SAFELY ACCESS BROWSER ELEMENTS
  12. 15:08USEEFFECT EXAMPLE
  13. 16:55ART DIRECTION: HTML OR JAVASCRIPT?
  14. 17:46ART DIRECTION IN HTML
  15. 20:23RESOURCES + FURTHER READING
~/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.