{"id":766,"date":"2011-12-17T16:00:25","date_gmt":"2011-12-17T08:00:25","guid":{"rendered":"http:\/\/www.poloo.org\/?p=766"},"modified":"2011-12-17T16:00:25","modified_gmt":"2011-12-17T08:00:25","slug":"%e7%bd%91%e7%ab%99%e5%8a%a0%e9%80%9f-%e7%be%8e%e5%b7%a5%e5%92%8c%e5%89%8d%e7%ab%af%e5%bc%80%e5%8f%91%e4%ba%ba%e5%91%98%e4%b9%9f%e5%be%88%e5%85%b3%e9%94%ae","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=766","title":{"rendered":"\u7f51\u7ad9\u52a0\u901f \u7f8e\u5de5\u548c\u524d\u7aef\u5f00\u53d1\u4eba\u5458\u4e5f\u5f88\u5173\u952e"},"content":{"rendered":"<p>\u4e00\u822c\u800c\u8a00\uff0c\u5173\u4e8e\u7f51\u7ad9\u52a0\u901f\uff0c\u5927\u90e8\u5206\u4eba\u8ba4\u4e3a\u662f\u540e\u7aef\u5f00\u53d1\u8005\u548c\u7cfb\u7edf\u7ba1\u7406\u7684\u804c\u8d23\u3002\u8fd9\u79cd\u89c2\u70b9\u4e0d\u5b8c\u5168\u6b63\u786e\uff0c\u56e0\u4e3a\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u7f51\u7ad9\uff0c\u4e0d\u4ec5\u53d6\u51b3\u4e8e\u7f51\u7ad9\u7684\u540e\u7aef\uff0c\u8fd8\u4f9d\u8d56\u7f51\u7ad9\u7684\u524d\u7aef\uff0c\u4e5f\u5c31\u662f\u8bf4\u8fd8\u4f9d\u8d56\u4e8e\u7f8e\u5de5\u548c\u524d\u7aef\u5f00\u53d1\u4eba\u5458\u3002<\/p>\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u5c31\u76ee\u524d\u7684\u7f51\u7edc\u73af\u5883\u6765\u770b\uff0c\u6211\u4eec\u5728\u6d4f\u89c8\u6b63\u5e38\u7684\u7f51\u7ad9\u65f6\uff0c\u901a\u5e38\u603b\u8017\u8d39\u65f6\u95f4\u768410-20%\u7528\u5728\u4e86\u540e\u7aef\uff0c\u5269\u4e0b80-90%\u7684\u65f6\u95f4\u88ab\u524d\u7aef\u6240\u6d88\u8017\u3002\u6240\u4ee5\uff0c\u5982\u679c \u4f60\u8ba1\u5212\u63d0\u5347\u7f51\u7ad9\u7684\u901f\u5ea6\uff0c\u4e0d\u59a8\u5728\u4f18\u5316\u540e\u7aef\u7684\u540c\u65f6\uff0c\u8ba9\u7f8e\u5de5\u548c\u524d\u7aef\u5f00\u53d1\u4eba\u5458\u8003\u8651\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u3002\u76f8\u4fe1\u4f60\u53ef\u80fd\u4f1a\u611f\u53f9\uff0c\u4e0d\u5927\u52a8\u5200\u6208\u4e5f\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u5347\u7f51\u7ad9\u7684\u6027\u80fd\u3002<br \/>\n<!--more--><br \/>\n1. \u5c3d\u53ef\u80fd\u51cf\u5c11 HTTP \u8bf7\u6c42\u7684\u6b21\u6570\u3002<\/p>\n<p>\u4f8b\u5982\uff1a\u7528\u4e00\u5f20\u56fe\u7247\u4ee3\u66ff\u591a\u5f20\u56fe\u7247\uff0c\u518d\u7528CSS\u663e\u793a\u3002<\/p>\n<p>2. \u91c7\u7528CDN\u5bf9\u7f51\u7ad9\u52a0\u901f\u3002<\/p>\n<p>CDN\u53ef\u4ee5\u5728\u4e0d\u6539\u52a8\u539f\u6709\u7f51\u7ad9\u67b6\u6784\u7684\u524d\u63d0\u4e0b\uff0c\u5f88\u5927\u5e45\u5ea6\u5730\u63d0\u5347\u7f51\u7ad9\u7684\u8bbf\u95ee\u901f\u5ea6\u3002\u7279\u522b\u662f\u5bf9\u4e8e\u90a3\u4e9b\u62e5\u6709\u5168\u56fd(\u6216\u4e16\u754c\u5404\u5730)\u7528\u6237\u7684\u7f51\u7ad9\uff0c\u6548\u679c\u4f1a\u66f4\u52a0\u660e\u663e\u3002<\/p>\n<p>3. CSS\u6587\u4ef6\u653e\u5728\u9875\u9762\u5934\u90e8\u3002<\/p>\n<p>\u6d4f\u89c8\u5668\u5728\u663e\u793a\u9875\u9762\u4e4b\u524d\uff0c\u5fc5\u987b\u8981\u5f97\u5230CSS\u3002\u5426\u5219\u65e0\u6cd5\u663e\u793a\u7f51\u9875\u3002\u6240\u4ee5\uff0c\u5c06CSS\u6587\u4ef6 \u653e\u5728\u9875\u9762\u5934\u90e8\u662f\u660e\u667a\u4e4b\u4e3e\u3002\u4f2f\u4e50\u5728\u7ebf\u7684\u5f00\u53d1\u56e2\u961f\u66fe\u7ecf\u505a\u8fc7\u6d4b\u8bd5\uff0c\u5982\u679c\u4e00\u5f20\u7f51\u9875\u5305\u62ec\u591a\u4e2aJS\u6587\u4ef6\uff0c\u540c\u65f6CSS\u6587\u4ef6\u653e\u5728\u7f51\u9875\u6700\u540e\u3002\u7528\u6237\u6d4f\u89c8\u7f51\u9875\u65f6\uff0c\u975e\u5e38\u660e\u663e\u5730\u611f\u89c9 \u5230\u7f51\u9875\u5148\u662f\u7a7a\u767d(\u4e0b\u8f7dJS\u548c\u5176\u4ed6\u6587\u4ef6)\uff0c\u7136\u540e\u518d\u663e\u793a\u51fa\u6765\u3002<\/p>\n<p>\u663e\u7136\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u7528\u6237\u4f53\u9a8c\u662f\u975e\u5e38\u5dee\u7684\u3002\u4e0e\u6b64\u76f8\u53cd\uff0c\u5982\u679c\u5c06CSS\u6587\u4ef6\u653e\u5728\u9875\u9762\u5934\u90e8\uff0c\u7528\u6237\u6d4f\u89c8\u7f51\u9875 \u65f6\uff0c\u53ef\u4ee5\u5148\u770b\u5230\u7f51\u9875 (\u7f51\u9875\u65e0\u660e\u663e\u7a7a\u767d)\u3002<\/p>\n<p>4. JS\u6587\u4ef6\u653e\u5728\u9875\u9762\u5c3e\u90e8\u3002<\/p>\n<p>\u9053\u7406\u548cCSS\u6587\u4ef6\u653e\u5728\u9875\u9762\u5934\u90e8\u4e00\u6837\u3002<\/p>\n<p>5. \u5c06CSS\u548cJS\u4ee3\u7801\u5355\u72ec\u5b58\u653e\u5728\u72ec\u7acb\u4e8e\u7f51\u9875\u7684\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u73b0\u5728\u5f88\u591a\u7684\u6d4f\u89c8\u5668\uff0c\u5982Firefox\uff0c IE 7\uff0c8 \u7b49\u7b49\u90fd\u4f1a\u5c06\u56fe\u7247\uff0cCSS\uff0cJS\u7b49\u5916\u90e8\u7684\u6587\u4ef6\u7f13\u5b58\u5728\u7528\u6237\u672c\u5730\uff0c\u6240\u4ee5\uff0c\u7528\u6237\u901a\u8fc7\u8fd9\u4e9b\u6d4f\u89c8\u5668\u6d4f\u89c8\u7f51\u9875\u65f6\u53ea\u4f20\u8f93\u7f51\u9875\u7684\u6587\u672c\u5185\u5bb9\uff0c\u4e0d\u518d\u6b21\u4e0b\u8f7d\u56fe\u7247\uff0cCSS\uff0cJS\u7b49\u5916 \u90e8\u7684\u6587\u4ef6\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u8bbf\u95ee\u7684\u901f\u5ea6\u81ea\u7136\u53ef\u4ee5\u63d0\u5347\u4e0d\u5c11\u3002\u53e6\u5916\uff0c\u5c06CSS\u548cJS\u4ee3\u7801\u5355\u72ec\u5b58\u653e\u5728\u72ec\u7acb\u4e8e\u7f51\u9875\u7684\u6587\u4ef6\uff0c\u4e5f\u4fbf\u4e8e\u7ba1\u7406\u3002<\/p>\n<p>6. \u5bf9JS\u201c\u7626\u8eab\u201d\u3002<\/p>\n<p>\u7528\u7b2c\u4e09\u65b9\u7684\u5de5\u5177(\u4e0d\u9700\u8981\u624b\u5de5)\u5bf9JS\u8fdb\u884c\u538b\u7f29\uff0c\u5305\u62ec\u5220\u9664\u6ce8\u91ca\uff0c\u7a7a\u683c\u7b49\u7b49\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\u53ef\u4ee5\u51cf\u5c0f20%\u5de6\u53f3\u3002\u4f8b\u5982\uff0c\u672a\u201c\u7626\u8eab\u201d\u524dJS\u4e3a100KB\uff0c \u201c\u7626\u8eab\u201d\u540e80KB.<\/p>\n<p>\u9664\u7b2c2\u9879\u5916\uff0c\u5176\u4ed65\u4e2a\u65b9\u9762\u90fd\u662f\u548c\u7f8e\u5de5\u548c\u524d\u7aef\u5f00\u53d1\u4eba\u5458\u76f8\u5173\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u822c\u800c\u8a00\uff0c\u5173\u4e8e\u7f51\u7ad9\u52a0\u901f\uff0c\u5927\u90e8\u5206\u4eba\u8ba4\u4e3a\u662f\u540e\u7aef\u5f00\u53d1\u8005\u548c\u7cfb\u7edf\u7ba1\u7406\u7684\u804c\u8d23\u3002\u8fd9&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[73,72,57,71],"class_list":["post-766","post","type-post","status-publish","format-standard","hentry","category-Dream","tag-73","tag-72","tag-57","tag-71"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=766"}],"version-history":[{"count":1,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions"}],"predecessor-version":[{"id":767,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions\/767"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}