Non-Frontend Optimizations: Speedups Without a Single Line of JS
summary
Practical infrastructure techniques for speeding up web apps without changing client JS: use 103 Early Hints (an evolution of Server Push), optimize transport handshakes with TCP/TLS 0-RTT or QUIC, choose faster crypto algorithms (e.g., RSA vs ED25519) and enable OCSP Stapling, leverage sendfile/filesystem tricks or compile static assets into the server binary, prefer Zstd over Brotli for many dynamic responses, apply Chromium speculative rules for whole-page preloads, employ Service Workers to intercept requests early, and use modern image/video/font formats. The talk includes real benchmarks, compatibility notes (Nginx/Angie), and guidance for production rollout.
AI-written summary · about
chapters (29)
- 0:00Introduction
- 1:45Non-frontend optimizations
- 3:30TCP Fast Open explained
- 5:16TLS optimizations
- 8:48TLS Early Data and False Start
- 9:08QUIC and HTTP/3 optimizations
- 11:18QUIC limitations and security
- 12:00RSA vs elliptic curve encryption
- 14:06OCSP Stapling benefits
- 15:32File reading optimizations
- 17:38Sendfile syscall
- 17:59Asynchronous file reading
- 18:42PageCache and O_DIRECT
- 19:45Compression algorithms
- 21:34Pre-compressed files in Nginx
- 21:57Dictionary-based compression
- 23:44Early Hints and 103 status
- 24:47Speculative rules in Chrome
- 25:51Service Worker performance
- 26:34Modern media formats
- 27:16Cleaning HTML attributes
- 28:20Performance metrics
- 29:25Q&A
- 30:50TCP vs UDP for web
- 31:33Best optimization impact
- 32:16Client-side compression impact
- 33:25HTTP/1.1 streaming
- 34:08Server Push vs Early Hints
- 34:51Nginx alternatives
