![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Web前端开发
文章平均质量分 51
FrankYuo
这个作者很懒,什么都没留下…
展开
-
Put Scripts at the Bottom .
Best Practices for Speeding Up Your Web Site The problem caused by scripts is that they block parallel downloads. The HTTP/1.1 specification suggests that browsers download no more than two component转载 2012-07-12 09:23:43 · 349 阅读 · 0 评论 -
Minify JavaScript and CSS .
Minification is the practice of removing unnecessary characters from code to reduce its size thereby improving load times. When code is minified all comments are removed, as well as unneeded white spa转载 2012-07-12 09:24:41 · 340 阅读 · 0 评论 -
Make JavaScript and CSS External .
Many of these performance rules deal with how external components are managed. However, before these considerations arise you should ask a more basic question: Should JavaScript and CSS be contained转载 2012-07-12 09:26:14 · 399 阅读 · 0 评论 -
Remove Duplicate Scripts .
It hurts performance to include the same JavaScript file twice in one page. This isn't as unusual as you might think. A review of the ten top U.S. web sites shows that two of them contain a duplicated转载 2012-07-12 09:27:20 · 306 阅读 · 0 评论 -
Minimize HTTP Requests
80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Reducing the number转载 2012-07-12 09:28:20 · 405 阅读 · 0 评论 -
Use a Content Delivery Network .
Use a Content Delivery Network Add an Expires or a Cache-Control Header Gzip Components 上述这些大家都懂的。转载 2012-07-12 09:29:07 · 248 阅读 · 0 评论 -
Yahoo前端开发规范
1、尽量减少HTTP请求次数 终端用户响应的时间中,有80%用于下载各项内容。这部分时间包括下载页面中的图像、样式表、脚本、Flash等。通过减少页面中的元素可以减少HTTP请求的次数。这是提高网页速度的关键步骤。 减少页面组件的方法其实就是简化页面设计。那么有没有一种方法既能保持页面内容的丰富性又能达到加快响应时间的目的呢?这里有几条减少HTTP请求次数同时又可能保持页面内容丰富的技术。转载 2012-07-13 10:51:58 · 1268 阅读 · 0 评论 -
HTTP中的Keep-Alive
ep-Alive通俗地讲,就是所谓的持久连接,对于http这种大量的短连接的服务来说,开启持久连接的好处可以节省大量的TCP连接过程的开销,据apache的官方文档称对包含大量图片的HTML文档造成的延时起到50%的加速作用。而同时现有操作系统越来越先进,建立连接的开销越来越小,像linux 2.6的epoll,freebsd的kqueue,可以让程序不产生新进程或新线程的情况就能同时服务N多连接原创 2013-04-28 16:00:38 · 727 阅读 · 0 评论