20.4f0139fe.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[20],{190:function(t,e,a){"use strict";a.r(e);var s=a(0),r=Object(s.a)({},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content"},[t._m(0),t._v(" "),a("p",[a("a",{attrs:{href:"https://developer.yahoo.com/performance/rules.html?guccounter=2",target:"_blank",rel:"noopener noreferrer"}},[t._v("原文"),a("OutboundLink")],1)]),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),t._m(7),t._v(" "),t._m(8),t._v(" "),t._m(9),t._v(" "),t._m(10),t._v(" "),t._m(11),t._v(" "),t._m(12),t._v(" "),t._m(13),t._v(" "),t._m(14),t._v(" "),t._m(15),t._v(" "),t._m(16),t._v(" "),t._m(17),t._v(" "),t._m(18),t._v(" "),t._m(19),t._v(" "),t._m(20),t._v(" "),t._m(21),t._v(" "),t._m(22),t._v(" "),t._m(23),t._v(" "),t._m(24),t._v(" "),t._m(25),t._v(" "),t._m(26),t._v(" "),t._m(27),t._v(" "),t._m(28),t._v(" "),t._m(29),t._v(" "),t._m(30),t._v(" "),t._m(31),t._v(" "),t._m(32),t._v(" "),t._m(33),t._v(" "),t._m(34),t._v(" "),t._m(35),t._v(" "),t._m(36),t._v(" "),t._m(37)])},[function(){var t=this.$createElement,e=this._self._c||t;return e("h1",{attrs:{id:"best-practices-for-speeding-up-your-web-site-加速网站的最佳实践"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#best-practices-for-speeding-up-your-web-site-加速网站的最佳实践","aria-hidden":"true"}},[this._v("#")]),this._v(" Best Practices for Speeding Up Your Web Site(加速网站的最佳实践)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("strong",[this._v("test")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_1、减少-http-请求次数(minimize-http-requests)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_1、减少-http-请求次数(minimize-http-requests)","aria-hidden":"true"}},[this._v("#")]),this._v(" 1、减少 HTTP 请求次数(Minimize HTTP Requests)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_2、使用-cdn-内容分发网络(use-a-content-delivery-network)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_2、使用-cdn-内容分发网络(use-a-content-delivery-network)","aria-hidden":"true"}},[this._v("#")]),this._v(" 2、使用 CDN 内容分发网络(Use a Content Delivery Network)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_3、添加有效期或缓存控制头-静态、动态内容分而治之(add-an-expires-or-a-cache-control-header)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_3、添加有效期或缓存控制头-静态、动态内容分而治之(add-an-expires-or-a-cache-control-header)","aria-hidden":"true"}},[this._v("#")]),this._v(" 3、添加有效期或缓存控制头 - 静态、动态内容分而治之(Add an Expires or a Cache-Control Header)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_4、引入-gzip-压缩组件(gzip-components)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_4、引入-gzip-压缩组件(gzip-components)","aria-hidden":"true"}},[this._v("#")]),this._v(" 4、引入 Gzip 压缩组件(Gzip Components)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_5、把样式表放在顶部-head-内(put-stylesheets-at-the-top)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_5、把样式表放在顶部-head-内(put-stylesheets-at-the-top)","aria-hidden":"true"}},[this._v("#")]),this._v(" 5、把样式表放在顶部 - HEAD 内(Put Stylesheets at the Top)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_6、把脚本放在底部(put-scripts-at-the-bottom)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_6、把脚本放在底部(put-scripts-at-the-bottom)","aria-hidden":"true"}},[this._v("#")]),this._v(" 6、把脚本放在底部(Put Scripts at the Bottom)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_7、避勉-css-表达式的使用-动一下鼠标会产生超过一万次的表达式计算(avoid-css-expressions)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_7、避勉-css-表达式的使用-动一下鼠标会产生超过一万次的表达式计算(avoid-css-expressions)","aria-hidden":"true"}},[this._v("#")]),this._v(" 7、避勉 CSS 表达式的使用 - 动一下鼠标会产生超过一万次的表达式计算(Avoid CSS Expressions)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_8、把-javascript-和-css-放到外部来引入的方式使用(make-javascript-and-css-external)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_8、把-javascript-和-css-放到外部来引入的方式使用(make-javascript-and-css-external)","aria-hidden":"true"}},[this._v("#")]),this._v(" 8、把 JavaScript 和 CSS 放到外部来引入的方式使用(Make JavaScript and CSS External)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_9、减少-dns-解析(reduce-dns-lookups)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_9、减少-dns-解析(reduce-dns-lookups)","aria-hidden":"true"}},[this._v("#")]),this._v(" 9、减少 DNS 解析(Reduce DNS Lookups)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_10、压缩以最小化-javascript-和-css(minify-javascript-and-css)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_10、压缩以最小化-javascript-和-css(minify-javascript-and-css)","aria-hidden":"true"}},[this._v("#")]),this._v(" 10、压缩以最小化 JavaScript 和 CSS(Minify JavaScript and CSS)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_11、避勉重定向(avoid-redirects)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_11、避勉重定向(avoid-redirects)","aria-hidden":"true"}},[this._v("#")]),this._v(" 11、避勉重定向(Avoid Redirects)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_12、移除重复的脚本(remove-duplicate-scripts)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_12、移除重复的脚本(remove-duplicate-scripts)","aria-hidden":"true"}},[this._v("#")]),this._v(" 12、移除重复的脚本(Remove Duplicate Scripts)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_13、配置-etags(configure-etags)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_13、配置-etags(configure-etags)","aria-hidden":"true"}},[this._v("#")]),this._v(" 13、配置 ETags(Configure ETags)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_14、使-ajax-可缓存(make-ajax-cacheable)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_14、使-ajax-可缓存(make-ajax-cacheable)","aria-hidden":"true"}},[this._v("#")]),this._v(" 14、使 Ajax 可缓存(Make Ajax Cacheable)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_15、尽早地刷新下发缓存(flush-the-buffer-early)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_15、尽早地刷新下发缓存(flush-the-buffer-early)","aria-hidden":"true"}},[this._v("#")]),this._v(" 15、尽早地刷新下发缓存(Flush the Buffer Early)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_16、ajax-请求使用-get-方法(use-get-for-ajax-requests)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_16、ajax-请求使用-get-方法(use-get-for-ajax-requests)","aria-hidden":"true"}},[this._v("#")]),this._v(" 16、AJAX 请求使用 GET 方法(Use GET for AJAX Requests)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_17、post-load-components"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_17、post-load-components","aria-hidden":"true"}},[this._v("#")]),this._v(" 17、Post-load Components")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_18、预加载组件(preload-components)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_18、预加载组件(preload-components)","aria-hidden":"true"}},[this._v("#")]),this._v(" 18、预加载组件(Preload Components)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_19、缩减-dom-元素的数量(reduce-the-number-of-dom-elements)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_19、缩减-dom-元素的数量(reduce-the-number-of-dom-elements)","aria-hidden":"true"}},[this._v("#")]),this._v(" 19、缩减 DOM 元素的数量(Reduce the Number of DOM Elements)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_20、跨域分割组件(split-components-across-domains)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_20、跨域分割组件(split-components-across-domains)","aria-hidden":"true"}},[this._v("#")]),this._v(" 20、跨域分割组件(Split Components Across Domains)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_21、减小-iframe-的数量(minimize-the-number-of-frames)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_21、减小-iframe-的数量(minimize-the-number-of-frames)","aria-hidden":"true"}},[this._v("#")]),this._v(" 21、减小 iframe 的数量(Minimize the Number of frames)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_22、没有-404-错误提示(no-404s)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_22、没有-404-错误提示(no-404s)","aria-hidden":"true"}},[this._v("#")]),this._v(" 22、没有 404 错误提示(No 404s)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_23、缩减-cookie-大小(reduce-cookie-size)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_23、缩减-cookie-大小(reduce-cookie-size)","aria-hidden":"true"}},[this._v("#")]),this._v(" 23、缩减 Cookie 大小(Reduce Cookie Size)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_24、为组件选用无-cookie-域(use-cookie-free-domains-for-components)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_24、为组件选用无-cookie-域(use-cookie-free-domains-for-components)","aria-hidden":"true"}},[this._v("#")]),this._v(" 24、为组件选用无 Cookie 域(Use Cookie-free Domains for Components)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_25、减小-dom-访问(minimize-dom-access)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_25、减小-dom-访问(minimize-dom-access)","aria-hidden":"true"}},[this._v("#")]),this._v(" 25、减小 DOM 访问(Minimize DOM Access)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_26、开发超级事件处理器(develop-smart-event-handlers)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_26、开发超级事件处理器(develop-smart-event-handlers)","aria-hidden":"true"}},[this._v("#")]),this._v(" 26、开发超级事件处理器(Develop Smart Event Handlers)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_27、选用-不如选用-import-ie(choose-over-import)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_27、选用-不如选用-import-ie(choose-over-import)","aria-hidden":"true"}},[this._v("#")]),this._v(" 27、选用 "),e("link"),this._v(" 不如选用 @import - IE(Choose "),e("link"),this._v(" over @import)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_28、avoid-filters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_28、avoid-filters","aria-hidden":"true"}},[this._v("#")]),this._v(" 28、Avoid Filters")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_29、优化图片(optimize-images)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_29、优化图片(optimize-images)","aria-hidden":"true"}},[this._v("#")]),this._v(" 29、优化图片(Optimize Images)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_30、优化-css-精灵(optimize-css-sprites)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_30、优化-css-精灵(optimize-css-sprites)","aria-hidden":"true"}},[this._v("#")]),this._v(" 30、优化 CSS 精灵(Optimize CSS Sprites)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_31、不要在-html-中缩放图片(don-t-scale-images-in-html)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_31、不要在-html-中缩放图片(don-t-scale-images-in-html)","aria-hidden":"true"}},[this._v("#")]),this._v(" 31、不要在 HTML 中缩放图片(Don't Scale Images in HTML)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_32、使收藏图标小一些且可缓存(make-favicon-ico-small-and-cacheable)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_32、使收藏图标小一些且可缓存(make-favicon-ico-small-and-cacheable)","aria-hidden":"true"}},[this._v("#")]),this._v(" 32、使收藏图标小一些且可缓存(Make favicon.ico Small and Cacheable)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_33、控制组件在-25k-之下(keep-components-under-25k)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_33、控制组件在-25k-之下(keep-components-under-25k)","aria-hidden":"true"}},[this._v("#")]),this._v(" 33、控制组件在 25K 之下(Keep Components under 25K)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_34、把多个组件打包到一个多段文档中(pack-components-into-a-multipart-document)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_34、把多个组件打包到一个多段文档中(pack-components-into-a-multipart-document)","aria-hidden":"true"}},[this._v("#")]),this._v(" 34、把多个组件打包到一个多段文档中(Pack Components into a Multipart Document)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:"_35、避勉空的图片源(avoid-empty-image-src)"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_35、避勉空的图片源(avoid-empty-image-src)","aria-hidden":"true"}},[this._v("#")]),this._v(" 35、避勉空的图片源(Avoid Empty Image src)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h4",{attrs:{id:""}},[e("a",{staticClass:"header-anchor",attrs:{href:"#","aria-hidden":"true"}},[this._v("#")])])}],!1,null,null,null);r.options.__file="2018_10_21_05.md";e.default=r.exports}}]);