规则1——减少HTTP请求;使用图片地图、CSS Sprites、使用data:模式的URL内联图片,以及合并脚本和样式表。
规则2——使用内容发布网络
规则3——添加Expires头信息
规则4——压缩组件,使用gzip压缩
规则5——将样式表放在顶部
规则6——将脚本放在底部
规则7——避免使用计算密集且频繁的CSS表达式
规则8——使用外部JavaScript和CSS
规则9——减少DNS查找,将同一页面中的域名划分成2到4个,这样可以减少DNS查询从而减少DNS延迟。
规则10——精简JavaScript
规则11——不要使用降低性能的重定向。更好的方式是使用CNAME或别名。
规则12——移除重复脚本,减少多余http request
规则13——配置ETag,多于一台Web服务器的网站来说,默认的实现都是不好的。
规则14——使Ajax可缓存强调编写可缓存且小巧的Ajax,避免不必要的Http requset。
摘录自《高性能网站建设指南》,话说这本非常薄,不到200页,还有不少插图,不过含金量奇高,推荐给所有搞web based app的同学们。(价格不是关键,关键是这本书能给你带来实际有用的知识)
分享到:
相关推荐
High performance web sites
很好的。High.Performance.Web.Sites,非常不错。值得拥有!:))
High Performance MySQL.chm和High Performance Web Sites.pdf 什么都不说了,我分享的东西绝对好东西, 很清晰,很好用,不过是英文的哦。 没分了,来挣分的,呵呵
Souders的上一本畅销书《高性能网站建设指南》(High Performance Web Sites)震惊了Web开发界,它揭示了在客户端加载一个网页的时间大约占用了总时耗的80%。在《高性能网站建设进阶指南》(Even Faster Web Sites...
High Performance Mobile Web 英文epub
veteran mobile and web developer Maximiliano Firtman demonstrates which aspects of your site or app slow down the user’s experience, and what you can do to achieve lightning-fast performance....
Web优化的十四条黄金法则不必多说,这本书正是《High Performance Web Sites》一书的续作
A C++ High Performance Web Server
Over high-latency and unreliable cellular networks, performance on mobile is the key to success and conversion. Early Release! This book will give you the knowledge and tools to measure your mobile...
Your high performance web application C framework
High Performance Computing 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请...
High.Performance.Web.Sites 高性能网站建设指南 中文+英文
This practical guide walks you through how to tune one of the leading free open source web servers to attain optimal performance for high-traffic sites. It also explores ways to improve network ...
Take your application to the next level of high performance using the extensive capabilities of Node.js About This Book Analyze, benchmark, and profile your Node.js application to find slow spots, ...
High Performance P2P Web Caching
Java 9 High Performance 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
High Performance Python High Performance Python High Performance Python