{"id":352075,"date":"2021-02-09T14:07:38","date_gmt":"2021-02-09T06:07:38","guid":{"rendered":"http:\/\/4563.org\/?p=352075"},"modified":"2021-02-09T14:07:38","modified_gmt":"2021-02-09T06:07:38","slug":"%e5%89%8d%e7%ab%af%e6%8a%80%e6%9c%af%e6%96%b9%e9%9d%a2%e7%9a%84%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96%e6%9c%89%e5%93%aa%e4%ba%9b%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=352075","title":{"rendered":"\u524d\u7aef\u6280\u672f\u65b9\u9762\u7684\u6027\u80fd\u4f18\u5316\u6709\u54ea\u4e9b\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u524d\u7aef\u6280\u672f\u65b9\u9762\u7684\u6027\u80fd\u4f18\u5316\u6709\u54ea\u4e9b\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : boblin <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u7b80\u5386\u91cc\u5199\u4e86\u524d\u7aef\u6027\u80fd\u4f18\u5316\u3002\u6700\u8fd1\u9762\u8bd5\uff0c\u90fd\u7231\u95ee\u505a\u4e86\u54ea\u4e9b\u4f18\u5316\u3002\u7b54\uff1a\u51cf\u5c11\u8bf7\u6c42\u6570\u3001\u9aa8\u67b6\u5c4f\u3001\u61d2\u52a0\u8f7d\u3001\u672c\u5730\u7f13\u5b58\u3002\u9762\u8bd5\u5b98\u7684\u610f\u601d\u662f\u90fd\u662f\u4e00\u4e9b\u4f53\u9a8c\u4f18\u5316\uff0c\u800c\u4e14\u90fd\u5f88\u57fa\u7840\uff0c\u4e0d\u592a\u6ee1\u610f\u3002\u7136\u540e\u9762\u8bd5\u7ed3\u675f\u7684\u65f6\u5019\u6211\u4e5f\u5fd8\u4e86\u95ee\u4ed6\u4eec\u90fd\u505a\u4e86\u54ea\u4e9b\u4f18\u5316\u3002<\/p>\n<p>\u8bf7\u95ee\u5404\u4f4d\u7f51\u53cb\uff0c\u4f60\u4eec\u5e73\u65f6\u90fd\u505a\u4e86\u54ea\u4e9b\u6027\u80fd\u4f18\u5316\uff1f      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5323077\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qyf1994 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u505a\u7684\u633a\u591a\u7684\u5c31\u662f\u60f3\u4e0d\u8d77\u6765\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323078\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qyf1994 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b80\u5386\u4e0a\u4e0d\u77e5\u9053\u5199\u4e9b\u4ec0\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323079\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mnikn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u57fa\u672c\u601d\u8def\u4e3b\u8981\u662f\u8fd9\u4e9b\uff0c\u4f46\u662f\u843d\u5b9e\u5230\u5177\u4f53\u4e1a\u52a1\u5c31\u6ca1\u6709\u8fd9\u4e48\u7b80\u5355\u4e86\u3002\u4f8b\u5982\u600e\u4e48\u5b9a\u4e49\u6027\u80fd\u6307\u6807\uff0c\u600e\u4e48\u77e5\u9053\u4f18\u5316\u540e\u7684\u63d0\u5347\u4e86\u591a\u5c11\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323080\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Ptu2sha <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             CDN HTTP2 webp \u6309\u9700\u52a0\u8f7d \u96ea\u78a7\u56fe \u5b57\u4f53\u56fe\u6807 \u56fe\u7247\u7f29\u653e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323081\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : connection <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0e#3 \u7c7b\u4f3c\uff0c\u5148\u5b9a\u4e49\u6307\u6807\uff0c\u518d\u7ed3\u5408\u4e1a\u52a1\u7279\u70b9\u505a\u6027\u80fd\u4f18\u5316                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323082\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ryougifujino <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u524d\u7aef\u5176\u5b9e\u6ca1\u6709\u540e\u7aef\u90a3\u4e48\u91cd\u89c6\u6027\u80fd\uff0c\u4e00\u822c\u6765\u8bf4\u4e5f\u5c31 CDN \u3001Tree Shaking \u3001\u7f13\u5b58\u8fd9\u4e9b\u4e86\uff0c\u90fd\u662f\u5fc5\u5907\uff0c\u6ca1\u4ec0\u4e48\u65b0\u610f\u3002<br \/>\u786e\u5b9e\u8fd8\u662f\u8981\u7ed3\u5408\u81ea\u5df1\u7684\u4e1a\u52a1\uff0c\u56e0\u4e3a\u4e00\u822c\u90fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5b9e\u9645\u7684\u95ee\u9898\uff0c\u518d\u53bb\u8bb2\u8ff0\uff0c\u5c31\u66f4\u6709\u8bf4\u670d\u529b\u4e00\u4e9b\u3002<br \/>\u6bd4\u5982\u6211\u4e4b\u524d\u7531\u4e8e\u540e\u7aef\u7684\u903b\u8f91\uff0c\u5bfc\u81f4\u8bf7\u6c42\u67d0\u4e00\u4e2a\u63a5\u53e3\u540e token \u5c31\u4f1a\u53d8\uff0c\u5e76\u53d1\u8bf7\u6c42\u7684\u65f6\u5019\u4f1a\u51fa\u73b0\u6388\u6743\u9519\u8bef\uff0c\u6700\u540e\u5199\u4e86\u4e00\u4e2a\u8c03\u5ea6\u5668\u89e3\u51b3\u4e86\u3002<br \/>\u8fd8\u6709\u5c31\u662f\u9879\u76ee\u4e2d\u9047\u5230\u4e86 RSA \u89e3\u5bc6\u7684\u573a\u666f\uff0c\u4f1a\u5361\u4e3b\u7ebf\u7a0b\uff0c\u5bfc\u81f4\u64cd\u4f5c\u5361\u987f\uff0c\u540e\u9762\u91c7\u53d6\u5c06\u89e3\u5bc6\u65b9\u6cd5\u5f02\u6b65\u5316\u540e\u5206\u7247\u64cd\u4f5c\u3002\u8fd9\u6837\u7684\u8bdd\u5c31\u53ef\u4ee5\u5c55\u5f00\u8bf4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323083\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aaronlam <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e4b\u524d\u5728\u516c\u53f8\u505a\u9879\u76ee\u65f6\u5185\u90e8\u603b\u7ed3\u4e86\u51e0\u4e2a\u70b9\uff0c\u53ef\u4ee5\u7ed9\u5927\u5bb6\u53c2\u8003\u4e00\u4e0b\uff1a https:\/\/docs.google.com\/document\/d\/1FCJ0M0KNR_FpdueOYjFvqBrw2Qp0aL2xJz5f9LupcbU\/edit                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323084\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 9yu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             WASM                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323085\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cyrbuzz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/HuberTRoy\/myown\/blob\/master\/%E5%9F%BA%E4%BA%8E%E6%80%9D%E8%80%83%E6%89%80%E5%81%9A%E7%9A%84%E6%8E%A2%E7%B4%A2\/%E6%80%A7%E8%83%BD%E6%96%B9%E9%9D%A2%E7%9A%84%E6%8E%A2%E7%B4%A2.md<\/p>\n<p>https:\/\/github.com\/HuberTRoy\/myown\/blob\/master\/web%E7%A8%8B%E5%BA%8F%E4%BC%98%E5%8C%96%E6%80%9D%E8%B7%AF.pdf<\/p>\n<p>\u4f18\u5316\u516c\u53f8\u4ea7\u54c1\u65f6\u7684\u603b\u7ed3\uff0clighthouse \u4ece\u4e0d\u5230 10 \u5206\u5df2\u7ecf\u63d0\u5347\u5230\u4e86 50~60+\u3002<\/p>\n<p>\u6211\u81ea\u5df1\u7684\u5b9e\u8df5\u4f18\u5316\u65b9\u9762\u662f\uff1a<br \/>1. \u7b2c\u4e09\u65b9\u8d44\u6e90\u975e\u963b\u585e\u52a0\u8f7d\uff0casync\/defer \u6807\u8bb0\uff0c\u8fd9\u4e2a\u63d0\u901f\u5f88\u5927\u3002<br \/>2. DNS\/CDN(\u767e\u5ea6\u7edf\u8ba1\u7b49)\u94fe\u63a5\u7684\u9884\u67e5\u8be2\u4e0e\u9884\u8fde\u63a5\uff0c\u8fd9\u4e2a\u770b\u4e0d\u51fa\u6765\u6548\u679c\uff0c\u63d0\u901f\u5fae\u5c0f\u3002<br \/>3. \u670d\u52a1\u5668\u7aef\u652f\u6301 HTTP2\uff0c\u6bd4 HTTP1.1 \u5feb\u4e86\u4e0d\u662f\u4e00\u70b9\u4e24\u70b9\u3002<br \/>4. \u5229\u7528\u670d\u52a1\u5668\u7aef\u8fdb\u884c\u5ef6\u8fdf\u52a0\u8f7d\uff0c\u672c\u8eab\u662f\u4e2a Nuxt \u7684\u670d\u52a1\u5668\u7aef\u9879\u76ee\uff0c\u5229\u7528 client-only \u6807\u7b7e\u914d\u5408 import() + v-if \u6761\u4ef6\u6e32\u67d3\uff0c\u5176\u5b9e\u5c31\u662f\u4e2a\u5206\u5757+\u61d2\u52a0\u8f7d\u4e0d\u8fc7\u6548\u679c\u5de8\u5927\uff0c\u9e45\u4e14\u5e73\u65f6\u5199\u7ec4\u4ef6\u7684\u65f6\u5019\u51e0\u4e4e\u90fd\u7528 import \u9759\u6001\u5bfc\u5165\uff0c\u8c03\u7528\u9891\u7387\u4f4e\u7684\u6a21\u5757\u4e5f\u53ef\u4ee5\u7528 import()\u6765\u6539\u5199\u3002<br \/>5. webpack \u6253\u5305\u65f6\u7684 tree-shaking\uff0c\u8001\u751f\u5e38\u8c08\u7684 lodash \u548c lodash-es \u7b49\u7b49\uff0c\u8fd9\u4e2a\u51cf\u5c11\u7684\u662f\u4f20\u8f93\u4f53\u79ef\uff0c\u5982\u679c\u9879\u76ee\u672c\u8eab\u5197\u957f\u8fd9\u5757\u63d0\u5347\u4e5f\u975e\u5e38\u5927\u3002<br \/>6. \u7f13\u5b58\u8fd9\u4e2a\u5c31\u4e0d\u7528\u8bf4\u4e86\uff0c\u68c0\u67e5\u68c0\u67e5\u6709\u6ca1\u6709\u914d\u7f6e\u5408\u7406\u3002<br \/>7. \u56fe\u7247\u79fb\u52a8\u7aef\u526a\u88c1\u6210 2 \u500d\u5b9e\u9645\u663e\u793a\u5927\u5c0f\u7684\u5c3a\u5bf8\uff0cPC \u7aef 1 \u500d\uff0c\u727a\u7272\u5c0f\u90e8\u5206\u6e05\u6670\u5ea6\u7684\u540c\u65f6\u5927\u5e45\u51cf\u5c11\u4f20\u8f93\u4f53\u79ef\u3002<br \/>8. \u9879\u76ee\u5177\u4f53\u5185\u90e8\u7684\u4ee3\u7801\u4f18\u5316\uff0c\u6bd4\u5982\u4e4b\u524d\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5229\u7528 vue computed \u5c5e\u6027\u7684\u52a8\u6001\u8bbe\u7f6e style \u7684\u6eda\u52a8\u6548\u679c\uff0c\u53d1\u73b0\u5360\u7528 CPU 20%\u4ee5\u4e0a&#8230;.\u7136\u540e\u6539\u6210\u4e86 animation \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323086\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yhxx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6311\u70b9\u4e0d\u5e38\u89c1\u7684\uff1f<br \/>\u6bd4\u5982 HTTP3 \uff1f\u6bd4\u5982\u7279\u522b\u6781\u81f4\u7684\u56fe\u7247\u4f18\u5316\uff08 HEIC \u3001APNG \u4e4b\u7c7b\u7684\uff0c\u6216\u8005\u6bd4\u5982\u63d0\u5347 CDN \u547d\u4e2d\u7387\uff09\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323087\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : murmur <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u5565\u80fd\u4f18\u5316\u7684\uff0c\u56fd\u5185\u7684\u7b56\u7565\u90fd\u662f\u653e\u5f03\u4f4e\u7aef\u673a\uff0c\u4e71\u4e03\u516b\u7cdf\u5806\u4e00\u5927\u5806\u4e1c\u897f\uff0c\u548b\u4e2a\u4f18\u5316<\/p>\n<p>\u5c11\u653e\u4e1c\u897f\u522b\u6574\u82b1\u91cc\u80e1\u54e8\u662f\u6700\u7ba1\u4e8b\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323088\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : orzzyd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u300a\u7b80\u5386\u91cc\u5199\u4e86\u524d\u7aef\u6027\u80fd\u4f18\u5316\u300b -&gt; \u7b80\u5386\u91cc\u53bb\u6389\u524d\u7aef\u6027\u80fd\u4f18\u5316\u3002<br \/>\u9762\u8bd5\u9047\u5230\u516b\u80a1\u6587\u7b97\u6211\u5012\u9709\uff0c\u53ef\u80fd\u60f9\u4e0d\u8d77\uff0c\u53ef\u80fd\u8eb2\u4e0d\u8d77\uff0c\u4f46\u4e0d\u8981\u4e3b\u52a8\u7ed9\u81ea\u5df1\u627e\u9ebb\u70e6\u5440\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323089\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : agdhole <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54d4\u54e9\u54d4\u54e9\u628a\u89c6\u9891\u4e0a\u4f20\u5904\u7406\u7684\u4e00\u4e9b\u6b65\u9aa4\u653e\u5230\u4e86\u672c\u5730 wasm \u91cc\u9762\u8fd0\u884c\uff0c\u6bd4\u5982\u9884\u89c8\u56fe\u751f\u6210                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323090\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : walpurgis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f20\u8f93\u5c42\u7684\u6027\u80fd\u4f18\u5316\u6709\u4e9b\u5b9e\u5728\u8fc7\u4e8e hack\uff0c\u5c31\u4e3a\u4e86\u63d0\u5347\u4e00\u4e22\u4e22\u901f\u5ea6\u800c\u5f15\u5165\u590d\u6742\u5ea6\uff0c\u73b0\u5728\u7f51\u901f\u5feb\u4e86\u771f\u4e0d\u5dee\u8fd9 0 \u70b9\u51e0\u79d2<br \/>\u63a5\u89e6\u8fc7\u4e00\u4e2a\u5c4e\u5c71\u9879\u76ee\uff0c\u4e00\u4e2a table \u51e0\u5343\u884c\uff0c\u52a0\u8f7d\u518d\u5feb\u4e5f\u6ca1\u7528\uff0c\u62d6\u90fd\u62d6\u4e0d\u52a8\uff0c\u80fd\u641e\u5b9a\u8fd9\u79cd\u624d\u53eb\u6027\u80fd\u4f18\u5316\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5323091\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xiayue <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u662f\u6700\u8fd1\u624d\u77e5\u9053\u7684\u3002\u6709\u4e2a\u6982\u5ff5\u53eb\u505a \u201c\u5173\u952e\u6e32\u67d3\u8def\u5f84\uff08 Critical Rendering Path \uff09\u201d \u4f60\u53ef\u4ee5\u641c\u7d22\u4e00\u4e0b\u3002\u611f\u89c9\u6709\u70b9\u7528\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u7aef\u6280\u672f\u65b9\u9762\u7684\u6027\u80fd\u4f18\u5316\u6709\u54ea\u4e9b\uff1f \u8cc7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/352075"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=352075"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/352075\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352075"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}