高性能网站 电子书下载 PDF下载

高性能网站
内容简介
《高性能网站(影印版)》中的规則向你解释了可以怎样优化网站中包含的Ajax、CSS、JavaScript、Flash和图片。每个规则都可以在《高性能网站(影印版)》的网站上找到对应的特别例子和代码片段。这些规則包括以下内容:减少HTTP连接请求、使用内容分发网络(ContentDeliveryNetwork)、在HTTP协议头添加过期时间、把部分内容变成Gzip格式、把样式表(stylesheets)放在顶部、将脚本放在底部、避免CSS表达式、外置JavaScript和CSS、减少DNS查找、将JavaScript最小化、避免重定向连接、删除重复脚本、配置ETags、生成可缓冲Ajax、如果你在为大流量的站点编写网页并且想要优化站点访问的用户体验,这本《高性能网站(影印版)》不可或缺。 ·查看全部>>
目录
Foreword
Preface
A. The Importance of Frontend Performance
Tracking Web Page Performance
Where Does the Time Go?
The Performance Golden Rule
B. HTTP Overview
Compression
Conditional GET Requests
Expires
Keep-Alive
Theres More
1. Rule 1: Make Fewer HTTP Requests
Image Maps
CSS Sprites
Inline Images
Combined Scripts and Stylesheets
Conclusion

2. Rule 2: Use a Content Delivery Network
Content Delivery Networks
The Savings

3. Rule 3: Add an Expires Header
Expires Header
Max-Age and mod_expires
Empty Cache vs. Primed Cache
More Than Just Images
Revving Filenames
Examples

4. Rule 4: Gzip Components
How Compression Works
……
9. Rule 9: Reduce DNS tookups
10. Rule10:MinifyJavaScript
11. Rule 11: Avoid Redirects
12. Rule 12: Remove Duplicate Scripts
13. Rule 13:Configure Elags
14. Rule 14: Make Ajax Cacheable
15. Deconstructing 10 Top Sites
Index
Copyright © 2024 by topbester.com.
All Rights Reserved.
沪ICP备14027842号-1