The content of the web is maturing and increasing in complexity, but internet infrastructure quality varies widely across the globe. People are browsing the web through a greater variety of devices and networks than ever before. Your website's visitors may be browsing via resource constrained connections, or limited by restricted data plans. Due to these hard realities, it's more important than ever that your website loads quickly, lest you alienate your visitors before they ever get a chance to see what your site has to offer. Web Performance in Action is your companion guide to making websites faster. Throughout the course of this book, you'll learn techniques that speed the delivery of your site's assets to the user, increase rendering speed, decrease the overall footprint of your site, as well as learn how to build a workflow that automates common optimization techniques. You'll also get a look at new technologies such as HTTP/2 that will take your website's speed from merely adequate to seriously fast.
Overall I found it an excellent resource on the subject, although it fell short in a couple of areas, reason why I'm giving it four stars instead of five. Among these are:
1. The treatments on compression deal only with dynamic compression of assets, no mention of statically compressing to serve them later was made.
2. Although it deals with brotli, zopfli is nowhere to be found (maybe precisely because static compression was missing).
3. When dealing with optimizing images, it barely mentions pngquant (on the last chapter, when automating optimizations), and doesn't recommend zopflipng, probably the best two tools to really squeeze pngs down; nor mozjpeg for jpgs.
4. It doesn't really emphasize the difference between lossless and lossy compression (which tools do which type of compression with what settings), his wording sometimes being misleading.
5. It doesn't deal with useful flags for the different programs to fine tune compression (e.g. svgo's --multipass, pgnquant's --speed 1).
Leaving these aside, the book has a deep enough treatment of HTTP/2, mentioning some classical recommendations to reduce HTTP/1.1 requests (such as image sprites), and why these are anti-patterns in HTTP/2, it deals with browser support for different features, how to polyfill in most scenarios, cites several useful resources to dig further; the list goes on.
All in all I highly recommend it for anyone interested on how to make websites leaner and faster. I hesitate a bit not giving it five stars, but hopefully the critiques mentioned above will be mended in future editions.
I really liked this book, although I had already some prior knowledge in the subject I guess I could not fully understand some concepts. And some things really surprised me. Performance of css selectors for example, for some reason I thought the more nesting you do the more work it requires from the browser to find respective nodes in DOM. And it seems that in reality nesting doesn't matter at all, what matters are css combinators like +, >, ~, they are indeed less performant. And it's just a small example from everything this book taught me.
The only drawback I can see is that when telling about automation it talks about Gulp and not Webpack. Although I guess it's due to the book being written like 4 years ago. I would love to see another edition concentrating more on JS and modern frameworks, their performance and overall issues. On the whole I'm happy with this book.
Una excelente guia para entender elementos necesarios para mejorar el performance de una aplicacion o pagina web.
Lo unico que en lo personal brinque un poco fueron los ejemplos practicos. Puede ser mucho para los que solo buscamos aprender del tema, y no como hacerlo a profundidad. Pero en si es bueno que el libro contenga esos tips.
I am not a web performance guru; most of the issues seem to have to do with network vs compute, and on the balance, what tradeoffs can be "hinted" at on the web page, whose data is, situated on the server to optimize responsiveness and performance. At issue, is scaling of images primarily in this book, and the size of the .jpg/.bmp etc. The book is math light, which is unfortunate- most of the calculations are likely quite simple. Perhaps this is a bit of an overstatement, but rough napkin ballpark figures are likely easy to arrive at.
Great introduction to optimizing web pages and there performance. You first learn 'the why', then 'the how'. Tools and techniques are introduced for learning how to assess and optimize your sites pages and assets (assets like: html, css, js, fonts, images, and so on). I think this is a very important topic.