The subtitle of this book is: the essence of front-end engineer skills. In fact, the subtitle should be: 14 "golden laws" that allow website acceleration ". This book is an excellent character. Although the content is thin, It is very advanced. Its Author: Steve Souders said that he has achieved the ultimate programming performance in the field of server-side development. This shows that the author has been immersed in the field of server-side development for a long time, to the realm of perfection (we can understand the gap between front-end development in China and other countries ). The 14 "best" rules in the book are obtained by the author after years of experience. This is not something that most people can tell you. Because the development of front-end development is not long, people who can summarize these rules must have the author's height and depth.
Xu Yan B's knowledge about the HTTP protocol is a real complement. HTTP-related books are rare in China, so they are good!
This book is suitable for all web developers to read carefully, not just front-end developers. The first sentence of this article emphasizes that the subtitle of the translated book is misleading to readers. The only drawback of this book is that the price of a blog post from an electrician's point of view is too high (the pig price can scare a group of loyal readers ). Fortunately, this book is much thinner than other books it published. I spent three hours reading it in the bookstore.
There are 34 rules in best practices for speeding up your web site. The first 14 Rules are detailed in the book, and the last 20 rules are not in the book:
Refresh cache early
Ajax requests use more get requests and less POST requests
Delayed component loading
Preload Components
Reduce the number of DOM elements
Splitting components by domain
The fewer IFRAME, the better.
Say no to 404
Weight loss by Cookie volume
The component uses a non-Cookie domain.
The fewer dom-based access, the better.
Develop flexible event handling
Select <link> instead of @ import.
Filter avoidance
Optimize images
Optimize CSS Sprites
Do not rewrite the image width or height in HTML.
The smaller the favicon. ICO, the better and the cache is.
All components must always be less than 25 KB
Package components into multiple documents