# Latency & Client Side Performance

- Speaker: [Gilly Barr](/wiki/speakers/gilly-barr.md)
- Event: [Reversim Summit 2014](/wiki/years/2014.md)
- Video: https://www.youtube.com/watch?v=pBRK578RVeM
- Transcript: [/transcripts/2014/55-pBRK578RVeM.md](/transcripts/2014/55-pBRK578RVeM.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Frontend](/wiki/topics/frontend.md), [Performance](/wiki/topics/performance.md), [Data Science](/wiki/topics/data-science.md), [Product Management](/wiki/topics/product-management.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker discusses strategies for improving client-side web performance and reducing page load latency. The talk covers methods to measure performance using waterfall charts and metrics, and presents practical techniques like domain sharding, DNS prefetching, resource loading strategies, and avoiding forced DOM layouts. The main argument is that backend optimizations alone are insufficient if the client waits several seconds to render the page, and faster load times directly correlate with increased business revenue.

## Key points

- [2:06](https://www.youtube.com/watch?v=pBRK578RVeM&t=126s) Server-side optimizations are often not enough because clients still experience long waiting times before the page is fully rendered.
- [7:31](https://www.youtube.com/watch?v=pBRK578RVeM&t=451s) Waterfall charts help visualize network timelines and identify performance bottlenecks during page requests.
- [8:46](https://www.youtube.com/watch?v=pBRK578RVeM&t=526s) Understanding request phases like DNS lookup, TCP handshake, time to first byte, and response download is crucial for web performance.
- [14:40](https://www.youtube.com/watch?v=pBRK578RVeM&t=880s) Technical tips to improve performance include optimizing domain sharding, using DNS prefetch, and placing CSS in the header while pushing JavaScript to the bottom.
- [15:46](https://www.youtube.com/watch?v=pBRK578RVeM&t=946s) Chunking responses and implementing lazy loading for below-the-fold images and non-critical resources can significantly speed up initial render times.
- [19:00](https://www.youtube.com/watch?v=pBRK578RVeM&t=1140s) Inefficient DOM manipulation causes forced layouts and recalculations, which degrade browser performance and cause scrolling choppiness.
- [21:23](https://www.youtube.com/watch?v=pBRK578RVeM&t=1283s) Using CSS transform properties and hardware acceleration shifts rendering tasks from the CPU to the GPU.
- [24:33](https://www.youtube.com/watch?v=pBRK578RVeM&t=1473s) Measuring correlation between page speed and user revenue proves the business value of client-side performance improvements.

## Takeaways

- Place stylesheets in the document head and defer JavaScript execution to the bottom of the page to improve initial render time.
- Use lazy loading for images and non-critical assets to prevent them from blocking the critical rendering path.
- Monitor performance using tools like WebPageTest and track metrics like the Speed Index to identify bottlenecks.
- Preload resources for subsequent pages in the background after the initial landing page has fully loaded.

## Questions this talk answers

- How can I measure and analyze client-side rendering bottlenecks using waterfall charts?
- What are the most effective techniques to improve Time to First Byte and start render times?
- How do I prevent forced synchronous layouts when manipulating the DOM in JavaScript?

## Technologies

JavaScript, CSS, HTML, jQuery, Node.js, PHP, C#, ASP.NET, PhantomJS, MongoDB, Redis, Memcached

## Tags

frontend, latency, metrics, optimization, performance, rendering, web development
