Wiki: My Website is Slow, Now What?
For agents: Markdown version · Wiki index · Explore
- Speaker: Dan Shappir
- Event: Reversim Summit 2019
- Video: https://www.youtube.com/watch?v=PF2Hj2zPveM
- Transcript: /transcripts/2019/30-PF2Hj2zPveM.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: Frontend, Performance, Software Engineering, JavaScript
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker discusses the common problem of slow website performance and explains why relying on spinners is not a real solution. The main argument is that performance should not be an afterthought, but rather a planned requirement established from the beginning of a project and measured continuously. The audience learns about performance budgets, monitoring tools like Google Lighthouse, and practical optimization techniques for network, media, text, and JavaScript.
Key points
- 0:10 Building a functional and beautiful website that is slow leads to high bounce rates and unhappy users, and relying on spinners is merely an admission of failure rather than a fix.
- 1:16 Observing millions of websites reveals that slow sites share a common trait of being annoying to both users and technologists.
- 2:16 The main causes of poor performance are a lack of upfront planning and performance requirements, feature creep, not knowing the target users, and a lack of measurement.
- 6:32 Performance should be treated as a core part of the process before building starts and throughout development, rather than a fix applied at the end.
- 7:37 Performance can be measured during development using browser developer tools, in production using real user measurement (RUM), and in CI/CD pipelines using tools like Google Lighthouse.
- 11:06 Performance budgets establish hard limits or thresholds in the build process to prevent performance regression over time.
- 14:33 Network optimizations include using content delivery networks (CDNs), minimizing redirects, upgrading to HTTP/2, enabling Gzip or Brotly compression, and proper caching.
- 17:36 Media and frontend optimizations involve compressing images, preferring formats like WebP or SVG over heavy GIFs, managing JavaScript bundle size, and implementing server-side rendering.
Takeaways
- Define clear performance requirements and budgets at the beginning of a project rather than trying to optimize at the end.
- Implement real user measurement (RUM) and automated checks in your CI/CD pipeline using tools like Google Lighthouse to catch regressions early.
- Optimize network delivery and media assets by using CDNs, modern compression algorithms like Brotly, proper caching, and appropriately sized images.
Questions this talk answers
- How can I set up performance budgets to prevent my web application from slowing down over time?
- What are the most effective ways to measure real user performance in a production environment?
- What steps can I take to reduce the impact of heavy JavaScript bundles and media assets on page load times?
Technologies
Google Lighthouse, Chrome DevTools, HTTP/2, Gzip, Brotly, WebP, SVG, NPM, Webpack
Tags
best practices, frontend optimization, javascript, metrics, monitoring, web performance