~/talk

Automatic Web Page Optimisation in Pure PHP

Talkat Dutch PHP Conference 2019 · 2019-06-06..06-08· [web-performance, php]
links:none on file
slides:none on file

A PHP library called Phast parses HTML on the fly (via output buffering and a tokenizer), inlines critical CSS inlining, proxies and WebP-converts images, and loads scripts by Ajax+eval while masking readyState and document.write so legacy WordPress sites render earlier. Installation is composer-based and a WordPress plugin has ~800 users. Server-side processing adds about 60–80ms overhead but yields a much faster first render and reduced bandwidth on repeat views.

AI-written summary · about

  1. 0:00Start
  2. 2:11A familiar story...
  3. 2:4553% will leave a page if it takes 3 s to load
  4. 5:17Google grades my site badly!
  5. 8:01Latency Bandwidth Roundtrips
  6. 17:30Remove render- blocking CSS & JS
  7. 18:59EAT SLEEP OPTIMIZE REPEAT
  8. 26:51Inlining critical CSS
  9. 29:43Inline scripts Events document.write
  10. 35:31Very fast first render PageSpeed score Bandwidth savings
  11. 36:30Increased TTFB Difficult debugging Doesn't work for SPA
  12. 38:39mod_pagespeed
~/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.