Web Performance in Action
Web Performance in Action
Summary:
Introduction
The book "Web Performance in Action" (2016, 360 pages) by Jeremy Wagner is a practical guide dedicated to optimizing the performance of web applications. In an era where every second of page load time affects conversion and user experience, this book remains a relevant source of knowledge for developers striving to create fast and responsive websites. Despite the book being written using JavaScript and Node.js, its concepts are applicable to any technology stack.
What the book is about
The book covers the full cycle of web performance optimization — from analyzing the current state to implementing advanced techniques. The author systematically breaks down key metrics (Time to First Byte, First Paint, Speed Index), audit tools (Lighthouse, WebPageTest, Chrome DevTools), and methods for speeding up loading. Special attention is given to:
- Critical CSS and inline styles for fast first rendering
- Lazy loading of images and scripts
- Server-side and client-side caching
- HTTP/2 and Server Push
- Font and animation optimization
- Minification and compression of resources
- Working with Web Workers and Service Workers
Each chapter contains real code examples in JavaScript and Node.js, as well as practical exercises to reinforce the material.
Who this book is for
The book is aimed at intermediate web developers familiar with HTML, CSS, and JavaScript. It will be useful for:
- Frontend developers looking to improve the performance of their projects
- Fullstack developers working with Node.js
- DevOps engineers responsible for configuring servers and CDNs
- Students and beginners studying web optimization
Reading does not require deep knowledge of performance — the author explains concepts from scratch, but assumes a basic understanding of web technologies.
What the reader will learn
After reading the book, the reader will be able to:
- Conduct performance audits using modern tools
- Optimize the critical rendering path
- Implement lazy loading for images, videos, and scripts
- Configure caching via HTTP headers and Service Workers
- Use HTTP/2 for multiplexing and Server Push
- Minify and compress resources (JavaScript, CSS, HTML)
- Optimize fonts and animations to reduce CPU load
- Work with Web Workers for background computations
- Measure and interpret performance metrics (FCP, LCP, TTI)
- Apply patterns for asynchronous loading and deferred execution
Strengths
The main advantage of the book is its practical focus. Each technique is accompanied by code that can be immediately applied in a project. The author doesn't just list methods, but explains why they work and what trade-offs exist. Particularly noteworthy are:
- A clear structure: from basics to advanced topics
- Numerous real-world examples using Node.js
- An emphasis on measurable results (metrics, graphs)
- Chapters on HTTP/2 and Service Workers that remain relevant
- Practical exercises at the end of each chapter
The book is written in a lively style, with complex concepts explained accessibly. Despite the year of publication (2016), most of the material has not become outdated — the basic principles of optimization (critical CSS, lazy loading, caching) remain unchanged.
Who it is recommended for
I recommend this book to all web developers who want to systematize their knowledge of performance and learn to apply modern techniques in practice. It will be especially useful for those working with JavaScript and Node.js, but developers using other languages will also find valuable ideas in it. If you strive to create fast, responsive, and competitive web applications — "Web Performance in