"Fast By Default — rebuilding Algolia’s website"
summary
Rebuild reduces homepage from multi-megabyte pages to ~200 KB by removing jQuery (≈30 KB, ~70 ms script eval saved), inlining SVGs and base64 images, and resizing + converting photos from 55 KB to 21 KB with WebP. Uses Lighthouse and WebPageTest to find bottlenecks, adds code-splitting (webpack magic comments), lazy-loading, Brotli for HTML, and cautious HTTP/2 push. Adds runtime fixes: idle main thread via IntersectionObserver and offscreen canvas; monitoring shows longer sessions and lower bounce rate.
AI-written summary · about
chapters (26)
- 0:00Introduction to performance focus
- 1:07Discovering slow website load time
- 2:36Starting with Lighthouse and WebPageTest
- 3:42Removing jQuery for faster JavaScript
- 5:07Optimizing CSS with Atomic CSS
- 6:10Compressing images with WebP
- 8:17Enabling WebP via server headers
- 9:41Introducing Brotli compression
- 11:25Reducing third-party script impact
- 13:33Using GDPR to trim tracking scripts
- 15:06Improving rendering with resource hints
- 16:52Lazy loading non-critical assets
- 17:35Eliminating unnecessary font requests
- 18:59Leveraging TLS 1.3 for faster connections
- 19:45Understanding HTTP/2 push limitations
- 21:11When HTTP/2 push is beneficial
- 22:38Avoiding bloated JavaScript bundles
- 24:00Dangers of base64 encoded images
- 25:26Removing inline SVG for better control
- 26:31Runtime optimizations beyond microbenchmarks
- 27:38Offloading animations to workers
- 28:42Using Intersection Observer for scroll detection
- 30:53Lazy loading images with Intersection Observer
- 31:56Monitoring performance over time
- 33:01Impact on user engagement metrics
- 34:06Conclusion and Q&A
