~/talk

Server-side Rendering of JavaScript in PHP

links:none on file
slides:none on file

Shows how to server-render React/Vue from PHP using webpack bundles and three practical runners: fork Node per request (simple but slow), embed V8 via v8js with snapshots (fast but hard to build), or run a long‑lived JS worker over a UNIX socket (fast and reusable). Demonstrates renderToString + hydration, using react-helmet for meta tags, Symfony/Twig integration, and libraries ReactRenderer ReactBundle phpexecjs; claims SEO and perceived-load wins (avoid 19s first paint on 3G; >50% abandon if >3s).

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Why server-side rendering
  3. 2:00History of web interactivity
  4. 4:21Dom manipulation challenges
  5. 6:30SEO and performance issues
  6. 9:20State-based frameworks
  7. 9:55React and component state
  8. 15:58Concept of SSR
  9. 16:25Hydration process
  10. 18:53PHP and SSR
  11. 22:42Node.js as a frontend API
  12. 23:57V8JS PHP extension
  13. 24:26V8JS snapshots and caching
  14. 25:46Alternative rendering servers
  15. 26:39Available PHP libraries
  16. 27:22Symfony bundle integration
  17. 27:38React on rails in PHP
  18. 27:48Managing global state
  19. 29:45Handling request context
  20. 30:28SEO meta tag management
  21. 32:26Sharing state with twig
  22. 33:07Browser specific code
  23. 33:20API calls on server
  24. 33:39Early testing advice
  25. 34:46Addressing frustration
  26. 35:22Summary
  27. 37:26Q&A
  28. 40:29Closing
~/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.