{"id":4862,"date":"2024-06-23T10:45:58","date_gmt":"2024-06-23T02:45:58","guid":{"rendered":"https:\/\/seo.tenten.co\/en\/?p=4862"},"modified":"2024-06-23T10:55:44","modified_gmt":"2024-06-23T02:55:44","slug":"enhancing-website-speed-achieving-a-99-performance-grade-from-30","status":"publish","type":"post","link":"https:\/\/seo.tenten.co\/zh\/seo\/\u63d0\u9ad8\u7db2\u7ad9\u901f\u5ea6\uff0c\u6548\u80fd\u7b49\u7d1a\u5f9e-30-\u63d0\u9ad8\u5230-99\/","title":{"rendered":"\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\uff1a\u9054\u5230 99% \u6548\u80fd\u7b49\u7d1a\uff08\u5f9e 30 \u958b\u59cb\uff01\uff09"},"content":{"rendered":"<p>\u300c\u65e9\u5728 2018 \u5e74\uff0cGoogle \u5c31\u66fe\u8868\u793a\uff0c\u9801\u9762\u901f\u5ea6\u73fe\u5728\u5c07\u5f71\u97ff\u684c\u9762\u548c\u884c\u52d5\u641c\u5c0b\u7d50\u679c\u7684\u6392\u540d\u3002\u7136\u800c\uff0c\u53d7\u9801\u9762\u901f\u5ea6\u5f71\u97ff\u7684\u4e0d\u50c5\u662f\u4f4d\u7f6e\u3002\u6839\u64da\u7814\u7a76\uff0c3 \u79d2\u7684\u9801\u9762\u8f09\u5165\u6301\u7e8c\u6642\u9593\u6703\u5c0e\u81f4 13% \u7684\u8df3\u51fa\u7387\uff0c\u9019\u8868\u660e\u9801\u9762\u901f\u5ea6\u4e0d\u50c5\u8207\u641c\u5c0b\u7d50\u679c\u6709\u95dc\uff0c\u9084\u8207\u4f7f\u7528\u8005\u9ad4\u9a57\u6709\u95dc\u3002<\/p>\n<p>\u90a3\u9ebc\uff0c\u5982\u679c\u60a8\u7684\u7db2\u7ad9\u904b\u4f5c\u7de9\u6162\uff0c\u8a72\u600e\u9ebc\u8fa6\uff1f\u63d0\u9ad8\u7db2\u7ad9\u6548\u80fd\u4e0d\u662f\u5728\u516c\u5712\u6563\u6b65\u90a3\u9ebc\u7c21\u55ae\uff1b\u56e0\u6b64\uff0c\u8a31\u591a\u516c\u53f8\u53ea\u662f\u505a\u4e86\u4e00\u4e9b\u5c0f\u7684\u512a\u5316\u4f86\u78ba\u4fdd\u81ea\u5df1\u5728\u641c\u5c0b\u7d50\u679c\u4e2d\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>\u8acb\u7e7c\u7e8c\u95b1\u8b80\uff0c\u4e86\u89e3\u6211\u5011\u5982\u4f55\u5f9e 30 \u5206\u7684\u7e3e\u6548\u8a55\u7d1a\u8f49\u8b8a\u70ba 99 \u5206\uff0c\u4ee5\u53ca\u70ba\u4ec0\u9ebc\uff08\u9664\u4e86\u5c0d\u6211\u5011\u7684\u6210\u5c31\u611f\u5230\u7121\u6bd4\u81ea\u8c6a\u4e4b\u5916\uff09\u64c1\u6709\u8a72\u884c\u696d\u6700\u5feb\u7684\u7db2\u7ad9\u4e4b\u4e00\u662f\u503c\u5f97\u4ed8\u51fa\u52aa\u529b\u7684\u3002<\/p>\n<h3><a id=\"our-starting-point-what-was-the-problem-and-why-we-had-to-solve-it\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u958b\u59cb\uff1a\u969c\u7919\u548c\u89e3\u6c7a\u5b83\u7684\u5fc5\u8981\u6027<\/h3>\n<p>\u900f\u904e\u6539\u9032\u6211\u5011\u7684\u7db2\u7ad9\uff0c\u6211\u5011\u7684\u91cd\u9ede\u662f\u5be6\u73fe\u4e09\u500b\u4e3b\u8981\u76ee\u6a19\uff1a<\/p>\n<ol>\n<li>\u900f\u904e\u5feb\u901f\u7684\u9801\u9762\u8f09\u5165\u3001\u6539\u9032\u7684\u4f7f\u7528\u8005\u9ad4\u9a57\u548c\u4e00\u6d41\u7684\u5167\u5bb9\u4f86\u63d0\u9ad8\u8f49\u63db\u7387\u3002<\/li>\n<li>\u63d0\u5347 SEO \u4e26\u5728\u641c\u5c0b\u5f15\u64ce\u4e0a\u7372\u5f97\u66f4\u597d\u7684\u53ef\u898b\u5ea6\u3002<\/li>\n<li>\u900f\u904e\u5c55\u793a\u65b0\u9805\u76ee\u548c\u5ba2\u6236\u8a55\u8ad6\u4f86\u63d0\u5347\u6211\u5011\u7684\u54c1\u724c\u5f62\u8c61\u3002<\/li>\n<\/ol>\n<p>\u9019\u4e9b\u76ee\u6a19\u5f15\u5c0e\u6211\u5011\u78ba\u5b9a\u9700\u8981\u6574\u5408\u7684\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u6211\u5011\u70ba\u5be6\u73fe\u76ee\u6a19\u6240\u63d0\u51fa\u7684\u95dc\u9375\u529f\u80fd\uff1a<\/p>\n<ul>\n<li> \u7d50\u69cb\u65b0\u7a4e\u7684\u7db2\u9801\u5177\u6709\u4ee4\u4eba\u5370\u8c61\u6df1\u523b\u7684\u5916\u89c0\uff0c\u53ef\u4ee5\u5c55\u793a\u6211\u5011\u7684\u670d\u52d9\u3001\u7522\u696d\u3001\u6280\u8853\u548c\u6848\u4f8b\u7814\u7a76\u3002<\/li>\n<li> \u589e\u5f37\u7684\u90e8\u843d\u683c\u6587\u7ae0\u9801\u9762\uff0c\u5177\u6709\u641c\u5c0b\u529f\u80fd\u3001\u6a19\u7c64\u548c\u985e\u5225\u3002<\/li>\n<li> \u300c\u806f\u7e6b\u300d\u548c\u5176\u4ed6\u65b9\u4fbf\u6e9d\u901a\u7684\u5f62\u5f0f\u3002<\/li>\n<li> \u5404\u7a2e\u7b2c\u4e09\u65b9\u6574\u5408\uff1aGoogle \u6a19\u7c64\u7ba1\u7406\u5668\u3001Cookiebot \u548c Hubspot \u7b49\u3002<\/li>\n<\/ul>\n<p>\u7e3d\u7684\u4f86\u8aaa\uff0c\u6211\u5011\u7684\u76ee\u6a19\u662f\u5efa\u7acb\u4e00\u500b\u5b89\u5168\u7684\u975c\u614b\u7db2\u7ad9\u3002\u56e0\u6b64\uff0c\u6211\u5011\u9078\u64c7\u4e86 GatsbyJS\uff0c\u4e00\u500b\u8207\u6b64\u76ee\u6a19\u7121\u7e2b\u5951\u5408\u7684 React \u6846\u67b6\u3002<\/p>\n<p>\u4f60\u554f\u70ba\u4ec0\u9ebc\u662f\u84cb\u8332\u6bd4\uff1f\u7684\u6f5b\u5728\u5be6\u529b <a href=\"https:\/\/www.gatsbyjs.com\/\">@GatsbyJS<\/a> \u5728\u65bc\u5b83\u80fd\u5920\u900f\u904e\u5728\u7de8\u8b6f\u904e\u7a0b\u4e2d\u5354\u8abf\u9810\u5148\u5efa\u7f6e\u7684 HTML\u3001CSS \u548c JavaScript\uff0c\u5c07 Web \u958b\u767c\u8f49\u8b8a\u70ba\u5e73\u7a69\u3001\u5feb\u901f\u7684\u6d41\u7a0b\u3002 GatsbyJS \u4f7f\u7528 React \u69cb\u5efa\uff0c\u4f7f\u6211\u5011\u80fd\u5920\u5229\u7528 React \u751f\u614b\u7cfb\u7d71\u7684\u64f4\u5c55\u4f86\u5275\u5efa\u55ae\u7368\u7684\u6a21\u677f\u548c\u5143\u4ef6\u3002<\/p>\n<p>\u6539\u7248\u5f8c\u7684\u7db2\u7ad9\u53e6\u4e00\u500b\u9700\u8981\u95dc\u6ce8\u7684\u65b9\u9762\u662f API \u5f8c\u7aef\u3002\u6211\u5011\u7684\u504f\u597d\u662f <a href=\"https:\/\/www.gatsbyjs.com\/\">@\u65af\u7279\u62c9\u76ae<\/a>\uff0c\u4e00\u500b\u958b\u6e90\u5167\u5bb9\u7ba1\u7406\u7cfb\u7d71\u3002\u8a72\u7cfb\u7d71\u4e0d\u50c5\u5141\u8a31\u6211\u5011\u81ea\u8a02\u8cc7\u6599\u7d50\u69cb\u4e26\u64f4\u5c55 API \u529f\u80fd\u4f86\u7ba1\u7406\u6587\u5b57\u3001\u5716\u50cf\u548c\u8996\u8a0a\u7b49\u591a\u7a2e\u5167\u5bb9\u683c\u5f0f\uff0c\u800c\u4e14\u9084\u70ba\u6211\u5011\u7bc0\u7701\u4e86\u5927\u91cf\u7684\u6642\u9593\u548c\u8cc7\u6e90 - \u5f97\u76ca\u65bc\u5176\u7528\u6236\u53cb\u597d\u7684\u7ba1\u7406\u9762\u677f\u548c\u88dc\u5145\u529f\u80fd\u9019\u5c31\u907f\u514d\u4e86\u5f9e\u982d\u958b\u59cb\u958b\u767c\u4e00\u5207\u7684\u5fc5\u8981\u6027\u3002<\/p>\n<p>\u6700\u5f8c\uff0c\u5c0d\u65bc\u4f3a\u670d\u5668\u8acb\u6c42\uff0c\u6211\u5011\u5229\u7528 GraphQL\u3002\u5b83\u8207 GatsbyJS \u7121\u7e2b\u517c\u5bb9\uff0c\u4f7f\u6211\u5011\u80fd\u5920\u5b9a\u7fa9\u67e5\u8a62\u683c\u5f0f\u4e26\u50c5\u6307\u5b9a\u5fc5\u9700\u7684\u5b57\u6bb5\u548c\u95dc\u4fc2\uff0c\u5f9e\u800c\u907f\u514d\u591a\u9918\u7684\u6578\u64da\uff0c\u5f9e\u800c\u52a0\u5feb\u9801\u9762\u52a0\u8f09\u6642\u9593\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4qeyraes7wajqomfi0qa.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4qeyraes7wajqomfi0qa.png\" alt=\"\u6211\u5011\u7db2\u7ad9\u7684\u6280\u8853\u7d44\u5408\" \/><\/a><br \/>\n<em>\u6280\u8853\u7684\u878d\u5408\u4f7f\u6211\u5011\u80fd\u5920\u5be6\u73fe\u6700\u4f73\u7684\u7db2\u7ad9\u7a69\u5b9a\u6027\u548c\u5b89\u5168\u6027<\/em><\/p>\n<p>\u5b8c\u6210\u5f8c\uff0c\u65b0\u7db2\u7ad9\u812b\u7a4e\u800c\u51fa\uff0c\u70ba\u6211\u5011\u5e36\u4f86\u4e86\u66f4\u9ad8\u7684\u6392\u540d\u548c\u66f4\u65b0\u7684\u8a2d\u8a08\u3002\u6700\u521d\u2026\u2026\u4f46\u96a8\u5f8c\uff0c\u4e8b\u60c5\u958b\u59cb\u9010\u6f38\u60e1\u5316\u3002\u96a8\u8457\u65b0\u9801\u9762\u7684\u6dfb\u52a0\u3001\u4e00\u7cfb\u5217\u4fee\u6539\u4ee5\u53ca\u7b2c\u4e09\u65b9\u8edf\u9ad4\u7684\u96c6\u6210\uff0c\u7a0b\u5f0f\u78bc\u5eab\u8fc5\u901f\u767c\u5c55\uff0c\u4ee5\u81f3\u65bc\u6211\u5011\u5c0d Google \u7684 Lighthouse\uff08\u4e00\u7a2e\u5206\u6790\u7db2\u9801\u901f\u5ea6\u7684\u5de5\u5177\uff09\u7684\u6548\u80fd\u8a55\u7d1a\u5927\u5e45\u4e0b\u964d\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft41i1svi70m8vy7kb53p.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft41i1svi70m8vy7kb53p.png\" alt=\"\u958b\u59cb\u524d\u71c8\u5854\u5f97\u5206\u8f03\u4f4e\" \/><\/a><br \/>\n<em>\u5728\u958b\u59cb\u6539\u9032\u5de5\u4f5c\u4e4b\u524d\uff0c\u71c8\u5854\u5c0d\u6211\u5011\u7684\u7db2\u7ad9\u9032\u884c\u4e86\u8a55\u5206<\/em><\/p>\n<p>\u7531\u65bc\u5206\u6578\u5982\u6b64\u4e0b\u964d\uff0cGoogle \u4e0d\u6703\u70ba\u6211\u5011\u5e36\u4f86\u6709\u5229\u7684\u4f4d\u7f6e\u3002\u6700\u91cd\u8981\u7684\u662f\uff0c\u5373\u4f7f\u78ba\u5be6\u5982\u6b64\uff0c\u7528\u6236\u4e5f\u4e0d\u6703\u5fcd\u53d7\u7b49\u5f85\u8f09\u5165\u3002<\/p>\n<p><a href=\"https:\/\/www.ericsson.com\/assets\/local\/mobility-report\/documents\/2016\/ericsson-mobility-report-feb-2016-interim.pdf\">\u611b\u7acb\u4fe1\u7684\u7814\u7a76<\/a> \u8aaa\u660e\u884c\u52d5\u88dd\u7f6e\u4e0a\u7684\u9801\u9762\u8f09\u5165\u5ef6\u9072\u6240\u5f15\u8d77\u7684\u58d3\u529b\u985e\u4f3c\u65bc\u9762\u5c0d\u6050\u6016\u96fb\u5f71\u3002\u5c31\u6027\u80fd\u800c\u8a00\uff0c\u6bcf\u4e00\u79d2\u90fd\u81f3\u95dc\u91cd\u8981\u3002\u5728\u8a8d\u8b58\u5230\u9019\u4e00\u56f0\u96e3\u5f8c\uff0c\u6211\u5011\u7acb\u5373\u81f4\u529b\u65bc\u6539\u5584\u7db2\u7ad9\u7684\u6548\u80fd\u3002<\/p>\n<h3><a id=\"improving-website-performance-step-by-step\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u6709\u689d\u4e0d\u7d0a\u5730\u63d0\u9ad8\u7db2\u7ad9\u6548\u7387<\/h3>\n<p>\u70ba\u4e86\u5be6\u73fe\u986f\u8457\u7684\u6548\u80fd\u63d0\u5347\uff0c\u6211\u5011\u4ed4\u7d30\u6aa2\u67e5\u4e86\u56f0\u64fe\u7db2\u7ad9\u7684\u4e3b\u8981\u554f\u984c\uff0c\u4e26\u958b\u59cb\u52aa\u529b\u7cfe\u6b63\u6bcf\u500b\u554f\u984c\u3002\u4ee5\u4e0b\u95e1\u8ff0\u4e86\u6211\u5011\u5982\u4f55\u514b\u670d\u4e3b\u8981\u6311\u6230\u3002<\/p>\n<h3><a id=\"1-accelerating-network-connections-establishment-by-2x\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>1. \u7db2\u8def\u9023\u7dda\u5efa\u7acb\u901f\u5ea6\u52a0\u500d<\/h3>\n<p><a href=\"https:\/\/gtmetrix.com\/\">G\u6307\u6a19<\/a>\u662f\u4e00\u7a2e\u63cf\u8ff0\u7db2\u7ad9\u8f09\u5165\u6a21\u5f0f\u7684\u5de5\u5177\uff0c\u53ef\u5e6b\u52a9\u6211\u5011\u5f9e\u5c0e\u81f4\u9023\u7dda\u6301\u7e8c\u6642\u9593\u5ef6\u9577\u7684\u5916\u90e8\u7db2\u57df\u4e2d\u627e\u51fa\u8cc7\u6e90\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fib2ybxxm0z5knguw3hnq.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fib2ybxxm0z5knguw3hnq.png\" alt=\"\u4e0b\u8f09\u6642\u9593\u5716\" \/><\/a><br \/>\n<em>\u7d2b\u8272\u6642\u9593\u8868\u793a\u7db2\u57df\u540d\u7a31\u4f3a\u670d\u5668\u63a5\u6536\u7db2\u57df\u540d\u7a31 IP \u4f4d\u5740\u8acb\u6c42\u7684\u6301\u7e8c\u6642\u9593\uff0c\u800c\u6dfa\u7da0\u8272\u8868\u793a\u4f3a\u670d\u5668\u9023\u7dda\u6642\u9593\u3002\u9019\u4e9b\u9593\u9694\u5f88\u9577\uff0c\u56e0\u6b64\uff0c\u6211\u5011\u900f\u904e\u9650\u5236\u4f3a\u670d\u5668\u9023\u7dda\u6642\u9593\u4f86\u52a0\u5feb\u5b83\u5011\u3002<\/em><\/p>\n<p>\u70ba\u4e86\u52a0\u5feb\u7db2\u7ad9\u901f\u5ea6\uff0c\u6211\u5011\u5be6\u65bd\u4e86\u5404\u7a2e\u6280\u8853\u6539\u9032\u3002\u6700\u521d\uff0c\u6211\u5011\u5229\u7528 HTML \u90e8\u7f72\u4e86\u8cc7\u6e90\u63d0\u793a <code>&lt;link&gt;<\/code> \u5c6c\u6027\u3002\u9019\u4e9b\u63d0\u793a\u6709\u52a9\u65bc\u700f\u89bd\u5668\u5728\u5c07\u8cc7\u6e90\u8acb\u6c42\u8f49\u767c\u5230\u4f3a\u670d\u5668\u4e4b\u524d\u4e3b\u52d5\u5efa\u7acb\u9023\u7dda\u3002\u5c0d\u65bc\u4f86\u81ea\u5916\u90e8\u7db2\u57df\u7684\u8cc7\u6e90\uff0c\u6211\u5011\u7d50\u5408\u4e86 DNS \u9810\u53d6\u548c\u9810\u9023\u7dda\u63d0\u793a\uff0c\u4e8b\u5148\u6307\u793a\u700f\u89bd\u5668\u555f\u52d5\u8207\u6307\u5b9a\u7db2\u57df\u7684\u9023\u7dda\u3002\u56e0\u6b64\uff0c\u7576\u700f\u89bd\u5668\u9700\u8981\u4f86\u81ea\u5916\u90e8\u7db2\u57df\u7684\u8cc7\u6e90\u6642\uff0c\u7531\u65bc\u521d\u6b65\u8a2d\u5b9a\u5df2\u7d93\u5b8c\u6210\uff0c\u56e0\u6b64\u53ef\u4ee5\u8f15\u9b06\u8f09\u5165\u5b83\u5011\u3002<\/p>\n<p>\u5c0d\u65bc\u8173\u672c\u548c\u6a23\u5f0f\u8868\u7b49\u5167\u90e8\u6587\u4ef6\uff0c\u6211\u5011\u63a1\u7528\u4e86\u300c\u9810\u5148\u8f09\u5165\u300d\u548c\u300c\u9810\u53d6\u300d\u63d0\u793a\u3002\u9019\u4e9b\u63d0\u793a\u78ba\u4fdd\u7576\u4f7f\u7528\u8005\u700f\u89bd\u6211\u5011\u7db2\u7ad9\u7684\u9801\u9762\u6642\uff0c\u53ef\u4ee5\u5f9e\u672c\u5730\u5feb\u53d6\u4e2d\u7372\u53d6\u5fc5\u8981\u7684\u8cc7\u6e90\uff0c\u5f9e\u800c\u7121\u9700\u5f9e\u9060\u7aef\u4f3a\u670d\u5668\u6aa2\u7d22\u5b83\u5011\uff0c\u5f9e\u800c\u52a0\u5feb\u4e86\u6d41\u7a0b\u3002<\/p>\n<p><strong>\u9019\u4e9b\u512a\u5316\u6709\u52a9\u65bc\u5c07 *Largest Contentful Paint \u5f9e 2.9 \u79d2\u7e2e\u77ed\u81f3 0.8 \u79d2\uff0c\u5c07 *First Contentful Paint \u5f9e 1 \u79d2\u7e2e\u77ed\u81f3 0.6 \u79d2\uff0c\u8b93\u700f\u89bd\u5668\u52a0\u5feb\u8cc7\u6e90\u8f09\u5165\u901f\u5ea6\u3002<\/strong><\/p>\n<p>*LCP\uff0ca<a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/core-web-vitals\">\u57fa\u672c Web Vitals \u6e2c\u91cf <\/a> \u5b83\u91cf\u5316\u4e86\u5f9e\u7528\u6236\u958b\u59cb\u52a0\u8f09\u9801\u9762\u5230\u6700\u7a81\u51fa\u7684\u5716\u50cf\u51fa\u73fe\u5728\u8996\u53e3\u4e2d\u7684\u6301\u7e8c\u6642\u9593\u3002<\/p>\n<p>*FCP \u8868\u793a\u4f7f\u7528\u8005\u9996\u6b21\u9020\u8a2a\u9801\u9762\u548c\u5167\u5bb9\u5728\u87a2\u5e55\u4e0a\u5448\u73fe\u4e4b\u9593\u7684\u6642\u9593\u9593\u9694\u3002<\/p>\n<h3><a id=\"achieving-better-font-loading-with-fast-text-rendering\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u900f\u904e\u5feb\u901f\u6587\u5b57\u6e32\u67d3\u589e\u5f37\u5b57\u9ad4\u52a0\u8f09<\/h3>\n<p>\u5728\u6211\u5011\u7684\u5e73\u53f0\u4e2d\uff0c\u6211\u5011\u6df7\u5408\u4f7f\u7528\u500b\u4eba\u5316\u548c\u516c\u958b\u53ef\u7528\u7684\u5b57\u9ad4\u3002\u6211\u5011\u900f\u904e Google \u8a17\u7ba1\u516c\u5171\u5b57\u9ad4\u201cManrope\u201d <a href=\"https:\/\/fontsource.org\/docs\/getting-started\/introduction\">\u5b57\u9ad4\u4f86\u6e90<\/a> \u96c6\u5408\uff0c\u56e0\u70ba\u5b83\u4ee3\u8868\u4e86\u7372\u53d6\u5b57\u9ad4\u7684\u6700\u5feb\u65b9\u6cd5\u3002<\/p>\n<p>\u7136\u800c\uff0c\u5118\u7ba1\u5f9e HTML \u6587\u4ef6\u4e2d\u6aa2\u7d22\u4e86\u6587\u672c\uff0c\u4f46\u5728\u52a0\u8f09\u5b57\u9ad4\u5305\u6642\u9084\u662f\u51fa\u73fe\u4e86\u5ef6\u9072\u3002\u70ba\u4e86\u907f\u514d\u6587\u5b57\u548c\u5b57\u9ad4\u8f09\u5165\u4e4b\u9593\u7684\u9019\u7a2e\u812b\u7bc0\uff0c\u6211\u5011\u6700\u521d\u7684\u7b56\u7565\u662f\u986f\u793a\u4e00\u500b\u6a21\u7cca\u7684\u5f8c\u5099\u5b57\u9ad4\uff0c\u76f4\u5230\u6211\u5011\u9996\u9078\u7684\u7db2\u9801\u5b57\u9ad4\u5b8c\u5168\u8f09\u5165\u3002\u9019\u7a2e\u65b9\u6cd5\u96d6\u7136\u6709\u6548\uff0c\u4f46\u5ef6\u9577\u4e86 LCP \u6307\u6a19\uff0c\u4fc3\u4f7f\u6211\u5011\u8abf\u6574\u7b56\u7565\u4ee5\u652f\u63f4\u5feb\u901f\u6587\u5b57\u6e32\u67d3\u3002<\/p>\n<p>\u5de5\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff1a\u6700\u521d\uff0c\u700f\u89bd\u5668\u8b58\u5225\u6307\u5b9a\u5b57\u9ad4\u7cfb\u5217\u4e2d\u7684\u53ef\u5b58\u53d6\u5b57\u9ad4\uff0c\u4e26\u5c07\u5176\u90e8\u7f72\u7528\u65bc\u6587\u5b57\u6e32\u67d3\u3002\u96a8\u5f8c\uff0c\u5728\u8f09\u5165\u539f\u59cb\u5b57\u9ad4\u5f8c\uff0c\u700f\u89bd\u5668\u6703\u7121\u7e2b\u5730\u7528\u5fc5\u8981\u7684\u5b57\u9ad4\u53d6\u4ee3\u521d\u59cb\u5b57\u9ad4\u3002\u9019\u7a2e\u7b56\u7565\u662f\u6700\u5feb\u7684\u5b57\u9ad4\u8f09\u5165\u65b9\u6cd5\uff0c\u5118\u7ba1\u5b83\u5b58\u5728\u8457\u7531\u65bc\u5b57\u9ad4\u5927\u5c0f\u6539\u8b8a\u800c\u5c0e\u81f4\u6587\u5b57\u610f\u5916\u79fb\u52d5\u7684\u98a8\u96aa\u3002\u70ba\u4e86\u6e1b\u8f15\u4f48\u5c40\u8b8a\u5316\u4e26\u7d30\u5316\u7d2f\u7a4d\u4f48\u5c40\u8b8a\u5316\uff08CLS\uff0c\u4e00\u7a2e\u7528\u65bc\u8ffd\u8e64\u9801\u9762\u52a0\u8f09\u671f\u9593\u610f\u5916\u5143\u7d20\u4f4d\u79fb\u7684\u5100\u8868\uff09\uff0c\u6211\u5011\u5be6\u73fe\u4e86 <a href=\"https:\/\/www.w3.org\/TR\/css-fonts-5\/\">CSS \u5b57\u9ad4\u6a21\u7d44\u7b49\u7d1a 5<\/a>\uff0c\u4e00\u5957\u5305\u542b\u5c6c\u6027\u7684\u898f\u7bc4\uff0c\u4f8b\u5982 <em>\u5c3a\u5bf8\u8abf\u6574<\/em>, <em>\u4e0b\u964d\u8986\u84cb<\/em>\uff0c \u548c <em>\u884c\u9593\u9699\u8986\u84cb<\/em>\uff0c\u9019\u5e6b\u52a9\u6211\u5011\u907f\u514d\u4e86\u5167\u5bb9\u8b8a\u5316\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4sf85oqslg70lkwpjfd7.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4sf85oqslg70lkwpjfd7.png\" alt=\"\u4f7f\u7528\u4e0d\u540c\u5b57\u578b\u65b9\u6cd5\u986f\u793a\u4e0b\u8f09\u6642\u9593\u7684\u5716\u8868\" \/><\/a><br \/>\n<em>CSS \u5b57\u9ad4\u6a21\u7d44\u7b49\u7d1a 5 \u8868\u73fe\u7121\u53ef\u6311\u5254\uff0c\u78ba\u4fdd\u5b57\u9ad4\u8b8a\u66f4\u800c\u4e0d\u5f71\u97ff\u4f48\u5c40<\/em><\/p>\n<p><strong>\u56e0\u6b64\uff0c\u4e09\u500b\u6307\u6a19\u2014\u2014\u9996\u6b21\u5167\u5bb9\u7e6a\u88fd\u3001\u6700\u5927\u5167\u5bb9\u7e6a\u88fd\u548c\u7d2f\u7a4d\u4f48\u5c40\u504f\u79fb\u5f97\u5230\u4e86\u589e\u5f37\u3002\u7279\u5225\u662f\uff0cCLS \u5f9e 0,143 \u79d2\u6e1b\u5c11\u5230 0 \u79d2\u3002<\/strong><\/p>\n<h3><a id=\"improving-the-loading-of-images-and-video\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u589e\u5f37\u5716\u7247\u3001\u5f71\u7247\u7684\u8f09\u5165<\/h3>\n<p>\u6211\u5011\u9047\u5230\u7684\u53e6\u4e00\u500b\u6548\u80fd\u6311\u6230\u662f\u5927\u91cf\u7684\u7db2\u8def\u8ca0\u8f09\u3002\u7db2\u7ad9\u5be9\u6838\u767c\u73fe\u6709\u5fc5\u8981\u5728\u4e0d\u5f71\u97ff\u54c1\u8cea\u7684\u60c5\u6cc1\u4e0b\u7e2e\u5c0f\u5716\u50cf\u548c\u5f71\u7247\u7684\u5927\u5c0f\uff0c\u5f9e\u800c\u7c21\u5316\u5716\u50cf\u548c\u5f71\u7247\u7684\u8f09\u5165\u904e\u7a0b\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwm6p0b4vn1knuo68g57.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwm6p0b4vn1knuo68g57.png\" alt=\"\u8aaa\u660e\u5404\u7a2e\u6587\u4ef6\u985e\u578b\u7684\u5716\u8868\" \/><\/a><br \/>\n<em><a href=\"https:\/\/yellowlab.tools\/\">\u9ec3\u8272\u5be6\u9a57\u5ba4\u5de5\u5177<\/a> \u8a55\u4f30\u8868\u660e\uff0c\u5728\u6240\u6709\u6587\u4ef6\u985e\u578b\u4e2d\uff0c\u5f71\u7247\u548c\u5716\u50cf\u7d66\u6211\u5011\u7684\u7db2\u7ad9\u5e36\u4f86\u4e86\u5de8\u5927\u7684\u8ca0\u64d4<\/em><\/p>\n<p>\u6211\u5011\u7684\u7db2\u7ad9\u5305\u542b\u5169\u7a2e\u5716\u50cf\u8b8a\u9ad4 - \u5411\u91cf\u5716\u50cf\uff08\u53ef\u64f4\u5c55\u5411\u91cf\u5716\u5f62 (SVG) \u683c\u5f0f\uff09\u548c\u5149\u67f5\u5716\u50cf\uff08PNG \u548c JPG \u683c\u5f0f\uff09\u3002\u6bcf\u500b category \u63a1\u7528\u4e86\u4e0d\u540c\u7684\u6700\u4f73\u5316\u6280\u8853\u3002<\/p>\n<h4><a id=\"31-optimization-of-vector-images-3-1-optimization-of-vector-images\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#31-optimization-of-vector-images\"><\/a>3.1 \u5411\u91cf\u5f71\u50cf\u7684\u589e\u5f37<\/h4>\n<p>\u5411\u91cf\u5716\u50cf\u901a\u5e38\u5177\u6709\u8f15\u91cf\u7d1a\u7684\u6027\u8cea\uff1b\u7136\u800c\uff0c\u7576\u6bcf\u500b\u6620\u50cf\u90fd\u9700\u8981\u4e00\u500b\u65b0\u7684 HTTP \u8acb\u6c42\u4f86\u8f09\u5165\u6642\uff0c\u554f\u984c\u5c31\u51fa\u73fe\u4e86\uff0c\u5f9e\u800c\u964d\u4f4e\u4e86\u6548\u80fd\u3002\u70ba\u4e86\u89e3\u6c7a\u9019\u500b\u554f\u984c\uff0c\u6211\u5011\u9078\u64c7\u63a1\u7528\u5167\u5d4c SVG\uff0c\u4ee5\u4fbf\u5c07\u5716\u7247\u76f4\u63a5\u5d4c\u5165\u5230 HTML \u4e2d\u3002\u9019\u662f\u900f\u904e <a href=\"https:\/\/www.gatsbyjs.com\/plugins\/gatsby-plugin-react-svg\/\"> &#039;gatsby-plugin-react-svg&#039; <\/a>\uff0cGatsby \u6846\u67b6\u5167\u7684\u4e00\u500b\u63d2\u4ef6\uff0c\u7c21\u5316\u4e86\u6d41\u7a0b\u3002<\/p>\n<h4><a id=\"32-optimization-of-raster-images-3-2-enhancement-of-raster-images\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#32-optimization-of-raster-images\"><\/a>3.2 \u5149\u67f5\u5f71\u50cf\u7684\u589e\u5f37 <\/h4>\n<p>\u70ba\u4e86\u52a0\u5feb PNG \u548c JPG \u5f71\u50cf\u7684\u8f09\u5165\u901f\u5ea6\uff0c\u6211\u5011\u5c07\u5b83\u5011\u8f49\u63db\u70ba\u73fe\u4ee3\u7684 .webP \u683c\u5f0f\uff0c\u4ee5\u78ba\u4fdd\u5353\u8d8a\u7684\u58d3\u7e2e\u6548\u679c\u548c\u6700\u5c0f\u7684\u54c1\u8cea\u59a5\u5354\u3002\u540c\u6a23\uff0c\u5f71\u7247\u5f9e .mp4 \u8f49\u63db\u70ba .webM\uff0c\u78ba\u4fdd\u589e\u5f37\u7684\u58d3\u7e2e\u548c\u54c1\u8cea\u3002\u96d6\u7136\u63a1\u7528 .webP \u548c .webM \u4f5c\u70ba\u4e3b\u8981\u683c\u5f0f\uff0c\u4f46\u9810\u8a08\u6703\u51fa\u73fe\u8207\u820a\u700f\u89bd\u5668\u7248\u672c\u7684\u517c\u5bb9\u6027\u554f\u984c\u3002\u70ba\u4e86\u7de9\u89e3\u9019\u500b\u554f\u984c\uff0c\u5c0d\u65bc\u4e0d\u652f\u63f4 .webP \u548c .webM \u7684\u700f\u89bd\u5668\uff0c\u4fdd\u7559\u4e86 .png\u3001.jpg \u548c .mp4 \u683c\u5f0f\u7684\u56de\u9000\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u5f71\u50cf\u986f\u793a\u9700\u8981\u8de8\u4e0d\u540c\u88dd\u7f6e\u9032\u884c\u6700\u4f73\u5316\u3002\u624b\u6a5f\u3001\u5e73\u677f\u96fb\u8166\u3001\u7b46\u8a18\u578b\u96fb\u8166\u6216 4K \u986f\u793a\u5668\u7b49\u5404\u7a2e\u88dd\u7f6e\u90fd\u9700\u8981\u4e0d\u540c\u7684\u5f71\u50cf\u5c3a\u5bf8\u3002\u70ba\u624b\u6a5f\u548c 4K \u986f\u793a\u5668\u4e0a\u50b3\u76f8\u540c\u7684\u5f71\u50cf\u6703\u5ef6\u9577\u7db2\u7ad9\u8f09\u5165\u6642\u9593\u3002\u4f5c\u70ba\u89e3\u6c7a\u65b9\u6848\uff0c\u6211\u5011\u5be6\u73fe\u4e86\u81ea\u9069\u61c9\u5716\u5f62\uff0c\u5728\u7a0b\u5f0f\u78bc\u4e2d\u5d4c\u5165\u4e86\u4e0d\u540c\u7684\u5716\u50cf\u9078\u9805\uff0c\u4f7f\u700f\u89bd\u5668\u80fd\u5920\u6839\u64da\u8996\u7a97\u5927\u5c0f\u3001\u87a2\u5e55\u89e3\u6790\u5ea6\u3001\u7db2\u8def\u901f\u5ea6\u7b49\u56e0\u7d20\u9078\u64c7\u6700\u4f73\u5716\u50cf\u3002\u900f\u904e\u5229\u7528\u50cf\u9019\u6a23\u7684\u5305 <a href=\"https:\/\/www.gatsbyjs.com\/plugins\/gatsby-background-image\/\"> &#039;\u84cb\u8332\u6bd4-\u80cc\u666f\u5716\u50cf&#039; <\/a> \u548c <a href=\"https:\/\/www.gatsbyjs.com\/plugins\/gatsby-image\/\"> &#039;\u84cb\u8332\u6bd4\u5f62\u8c61&#039; <\/a>\uff0c\u6211\u5011\u5275\u5efa\u4e86\u91dd\u5c0d\u4e0d\u540c\u8a2d\u5099\u91cf\u8eab\u5b9a\u5236\u7684\u591a\u500b\u5716\u50cf\u8b8a\u9ad4\u3002\u5728\u88e1\u9762 <a href=\"https:\/\/developer.chrome.com\/docs\/devtools\/network\/\">\u7db2\u8def\u9078\u9805\u5361<\/a> \u4e0b\u9762\u7684\u5feb\u7167\u4e2d\uff0c\u6211\u5011\u5728\u9801\u9762\u986f\u793a\u6a21\u5f0f\u4e4b\u9593\u5207\u63db\u6642\u986f\u793a\u4e86\u300c\u5207\u63db\u88dd\u7f6e\u5de5\u5177\u5217\u300d\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwqgndx0o5ewcz73vdhn1.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwqgndx0o5ewcz73vdhn1.png\" alt=\"\u8a2d\u5099\u5de5\u5177\u5217\" \/><\/a><br \/>\n<em>\u5728\u9019\u88e1\uff0c\u6211\u5011\u555f\u7528\u4e86\u8a2d\u5099\u5de5\u5177\u5217\u4f86\u512a\u5316\u4e0d\u540c\u8a2d\u5099\u7684\u5716\u50cf\u52a0\u8f09<\/em><br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3vay7wymdda5jsalwm3o.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3vay7wymdda5jsalwm3o.png\" alt=\"\u512a\u5316\u6e1b\u5c0f\u5927\u5c0f\u7684\u76f8\u540c\u6a94\u6848\u7684\u8f09\u5165\u904e\u7a0b\" \/><\/a><br \/>\n<em>\u6b64\u8655\u986f\u793a\u7684\u662f\u91dd\u5c0d\u4e0d\u540c\u8a2d\u5099\u512a\u5316\u4e14\u5c3a\u5bf8\u6e1b\u5c0f\u7684\u76f8\u540c\u6587\u4ef6<\/em><\/p>\n<h4><a id=\"33-lazy-loading-for-behindthescenes-images-3-3-lazy-loading-for-background-images\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#33-lazy-loading-for-behindthescenes-images\"><\/a>3.3 \u5e55\u5f8c\u5f71\u50cf\u7684\u5ef6\u9072\u8f09\u5165<\/h4>\n<p>\u6700\u5f8c\uff0c\u6211\u5011\u5be6\u73fe\u4e86\u5ef6\u9072\u52a0\u8f09\u548c\u5716\u50cf\u6a21\u7cca\u6548\u679c\uff0c\u4ee5\u78ba\u4fdd\u50c5\u5728\u7528\u6236\u67e5\u770b\u5716\u50cf\u6642\u624d\u52a0\u8f09\u5716\u50cf\uff0c\u8c50\u5bcc\u4e86\u8cc7\u6e90\u6709\u9650\u7684\u7528\u6236\u7684\u9ad4\u9a57\u3002<\/p>\n<p>\u5b9a\u50f9\u8868\u6216\u7db2\u8def\u9023\u7dda\u901f\u5ea6\u6162\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fboek61ri3wkz9q7xzadf.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fboek61ri3wkz9q7xzadf.png\" alt=\"\u8996\u89ba\u6548\u679c\u5ef6\u9072\u8f09\u5165\u6a5f\u5236\u5982\u4f55\u904b\u4f5c\" \/><\/a><br \/>\n<em>\u9019\u8209\u4f8b\u8aaa\u660e\u4e86\u8996\u89ba\u5167\u5bb9\u5ef6\u9072\u8f09\u5165\u529f\u80fd\u7684\u904b\u4f5c\u65b9\u5f0f<\/em><\/p>\n<p>\u6240\u6709\u7684\u52aa\u529b\u90fd\u5f97\u5230\u4e86\u56de\u5831\u2014\u2014\u6211\u5011\u5728\u4e0d\u5f71\u97ff\u54c1\u8cea\u7684\u60c5\u6cc1\u4e0b\u986f\u8457\u7e2e\u5c0f\u4e86\u7db2\u7ad9\u4e0a\u8996\u89ba\u6548\u679c\u7684\u5927\u5c0f\u3002<\/p>\n<p><a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ikwaoooeepq81fmvnch.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ikwaoooeepq81fmvnch.png\" alt=\"\u9ec3\u8272\u5be6\u9a57\u5ba4\u5de5\u5177\u7684\u8349\u5716\" \/><\/a><br \/>\n<em>\u7d93\u904e\u589e\u5f37\u5f8c\uff0cYellow Lab Tools \u767c\u73fe\u5f71\u7247\u4ecd\u7136\u4f54\u64da\u9801\u9762\u6b0a\u91cd\u7684\u8f03\u5927\u90e8\u5206\uff08\u6beb\u4e0d\u5947\u602a\uff09\uff0c\u4f46\u8996\u89ba\u6548\u679c\u7684\u8ca0\u8377\u5df2\u5927\u5927\u6e1b\u5c11\uff08\u7d2b\u8272\u90e8\u5206\uff09<\/em><\/p>\n<p><strong>\u9019\u4e9b\u589e\u5f37\u529f\u80fd\u6975\u5927\u5730\u8c50\u5bcc\u4e86\u4f7f\u7528\u8005\u9ad4\u9a57\u548c CLS \u548c LCP \u7b49\u6307\u6a19\u3002\u900f\u904e\u5728 Gatsby \u751f\u614b\u7cfb\u7d71\u4e2d\u5c08\u9580\u5229\u7528\u8996\u89ba\u512a\u5316\u64f4\u5c55\uff0c\u6211\u5011\u4fc3\u9032\u4e86\u63d0\u9ad8\u6027\u80fd\u7684\u904e\u7a0b\u3002<\/strong><\/p>\n<h3><a id=\"4-optimizing-caching\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>4. \u7c21\u5316\u7de9\u5b58<\/h3>\n<p>\u6211\u5011\u5fc5\u9808\u627f\u8a8d\uff0c\u5feb\u53d6\u662f\u4e00\u7a2e\u7db2\u9801\u4f3a\u670d\u5668\u4fdd\u5b58\u7db2\u9801\u526f\u672c\u7684\u65b9\u6cd5\uff0c\u6700\u521d\u5728\u7db2\u7ad9\u5efa\u7acb\u904e\u7a0b\u4e2d\u88ab\u5ffd\u7565\u4e86\u3002\u4e0d\u53ef\u5426\u8a8d\uff0c\u9019\u662f\u4e00\u500b\u932f\u5931\u7684\u524d\u666f\uff0c\u56e0\u70ba\u6709\u6548\u7684\u5feb\u53d6\u53ef\u4ee5\u52a0\u5feb\u7db2\u7ad9\u901f\u5ea6\u4e26\u6e1b\u8f15\u4f3a\u670d\u5668\u8ca0\u64d4\u3002\u6211\u5011\u6c7a\u5fc3\u5728\u5feb\u53d6\u512a\u5316\u65b9\u9762\u8fce\u982d\u8d95\u4e0a\uff0c\u4f46\u9047\u5230\u4e86\u5404\u7a2e\u5177\u9ad4\u969c\u7919\u3002<\/p>\n<p>\u6211\u5011\u7684\u76ee\u6a19\u662f\u900f\u904e\u70ba\u5373\u5c07\u5230\u4f86\u7684\u8a2a\u554f\u4fdd\u7559\u8cc7\u6e90\u4f86\u52a0\u901f\u8cc7\u6e90\u7684\u52a0\u8f09\uff0c\u800c\u4e0d\u662f\u6bcf\u6b21\u90fd\u4e0b\u8f09\u5b83\u5011\u3002\u70ba\u4e86\u5be6\u73fe\u9019\u4e00\u9ede\uff0c\u6211\u5011\u5728 HTTP \u6a19\u982d\u4e2d\u4f7f\u7528\u4e86\u300c\u5feb\u53d6\u63a7\u5236\u300d\u5c6c\u6027\uff0c\u4e26\u78ba\u5b9a\u4e86\u6a94\u6848\u5728\u5feb\u53d6\u4e2d\u61c9\u6301\u7e8c\u7684\u6642\u9593\u3002\u7136\u800c\uff0c\u53e6\u4e00\u500b\u56f0\u5883\u51fa\u73fe\u4e86\u3002\u5c0d\u7db2\u7ad9\u5167\u5bb9\u6216\u8a2d\u8a08\u9032\u884c\u4fee\u6539\u5f8c\uff0c\u8b8a\u66f4\u4e0d\u6703\u7acb\u5373\u986f\u793a\uff0c\u56e0\u70ba\u700f\u89bd\u5668\u4ecd\u7136\u4f7f\u7528\u820a\u5132\u5b58\u7684\u526f\u672c\u3002<\/p>\n<p>\u6211\u5011\u662f\u5982\u4f55\u89e3\u6c7a\u7684\uff1f\u6211\u5011\u5728\u6587\u4ef6\u9762\u984d\u4e2d\u9644\u52a0\u4e86\u4e00\u500b\u54c8\u5e0c\u503c\uff0c\u8a72\u503c\u6703\u96a8\u8457\u6bcf\u6b21\u6587\u4ef6\u7de8\u8f2f\u800c\u5237\u65b0\u3002\u9019\u7a2e\u65b9\u6cd5\u4f7f\u6211\u5011\u80fd\u5920\u5728\u5feb\u53d6\u4e2d\u9577\u6642\u9593\u4fdd\u7559\u6587\u4ef6\uff0c\u540c\u6642\u4ecd\u7136\u53ef\u4ee5\u8f15\u9b06\u5730\u9032\u884c\u66f4\u6539\u3002\u56e0\u6b64\uff0c\u9996\u6b21\u5167\u5bb9\u7e6a\u88fd (FCP) \u6307\u6a19\u5f9e\u8f03\u9ad8\u8f49\u8b8a\u70ba\u4e2d\u7b49\u3002<\/p>\n<p>\u76ee\u524d\uff0c\u6211\u5011\u6b63\u5728\u8003\u616e\u53e6\u4e00\u7a2e\u5f62\u5f0f\u7684\u7de9\u5b58\uff0c\u7a31\u70ba\u700f\u89bd\u5668\u5feb\u53d6\u3002\u8207\u9700\u8981\u6c38\u4e45\u4f3a\u670d\u5668\u9023\u7dda\u4e26\u6d88\u8017\u983b\u5bec\u4f86\u8f09\u5165\u56de\u61c9\u7684\u4f3a\u670d\u5668\u5feb\u53d6\u4e0d\u540c\uff0c\u700f\u89bd\u5668\u5feb\u53d6\u4f7f\u7528\u6236\u7121\u9700\u7db2\u8def\u9023\u7dda\u5373\u53ef\u5b58\u53d6\u7db2\u9801\u3002\u7136\u800c\uff0c\u5b83\u4e5f\u5b58\u5728\u5c40\u9650\u6027\u2014\u2014\u5982\u679c\u7528\u6236\u8a2d\u5099\u7684\u5132\u5b58\u7a7a\u9593\u4e0d\u8db3\uff0c\u700f\u89bd\u5668\u53ef\u80fd\u6703\u522a\u9664\u820a\u8cc7\u6599\u4ee5\u9069\u61c9\u65b0\u5167\u5bb9\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5rvpshlh4pre29g1vria.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5rvpshlh4pre29g1vria.png\" alt=\"\u5feb\u53d6\u5982\u4f55\u904b\u4f5c\" \/><\/a><br \/>\n<em>\u70ba\u4e86\u8b93\u60a8\u66f4\u597d\u5730\u7406\u89e3\uff0c\u9019\u88e1\u4e26\u5217\u4e86\u4f3a\u670d\u5668\u7aef\u5feb\u53d6\u548c\u5ba2\u6236\u7aef\u5feb\u53d6\u7684\u529f\u80fd<\/em><\/p>\n<h3><a id=\"5-eliminating-large-javascript-bundles\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>5. \u6d88\u9664\u5927\u91cf JavaScript \u96c6\u5408<\/h3>\n<p>\u6346\u7d81\u5305\u672c\u8cea\u4e0a\u7531\u6587\u4ef6\uff08\u901a\u5e38\u662f JavaScript\u3001CSS \u548c\u5176\u4ed6\u5c6c\u6027\uff09\u7d44\u6210\uff0c\u9019\u4e9b\u6587\u4ef6\u5408\u4f75\u70ba\u7d71\u4e00\u6587\u4ef6\uff0c\u4ee5\u4fbf\u66f4\u6709\u6548\u5730\u5206\u767c\u3002\u96a8\u8457\u6211\u5011\u7db2\u7ad9\u7684\u8907\u96dc\u6027\u4e0d\u65b7\u63d0\u9ad8\uff0c\u6211\u5011\u7684\u6346\u7d81\u5305\u7684\u5927\u5c0f\u4e0d\u65b7\u64f4\u5927\uff0c\u5f9e\u800c\u4f7f\u7db2\u7ad9\u8b8a\u5f97\u8d85\u91cd\u3002\u73fe\u5728\u662f\u627e\u51fa\u6709\u554f\u984c\u7684\u90e8\u5206\u4e26\u4e1f\u68c4\u5b83\u5011\u7684\u9069\u7576\u6642\u6a5f\u3002<\/p>\n<p>\u6709\u5e7e\u7a2e\u6709\u7528\u7684\u5de5\u5177\u53ef\u7528\u65bc\u8b58\u5225\u548c\u7cfe\u6b63\u6709\u554f\u984c\u7684\u6346\u7d81\u5305\u3002\u5176\u4e2d\u4e4b\u4e00\uff0c <a href=\"https:\/\/bundlephobia.com\/\">\u6346\u7d81\u6050\u61fc\u75c7<\/a>\uff0c\u6df1\u5165\u4e86\u89e3 NPM \u5957\u4ef6\u5c0d\u5957\u4ef6\u5927\u5c0f\u7684\u5f71\u97ff\u6709\u591a\u5927\uff0c\u6709\u52a9\u65bc\u907f\u514d\u904e\u5927\u7684\u6a94\u6848\u7de8\u8b6f\u3002 <a href=\"https:\/\/github.com\/wix\/import-cost\">\u9032\u53e3\u6210\u672c<\/a>\uff0c\u4e00\u500b VSCode \u64f4\u5c55\uff0c\u8a08\u7b97\u5c0e\u5165\u5305\u7684\u201c\u6210\u672c\u201d\uff0c\u5e6b\u52a9\u505a\u51fa\u660e\u667a\u7684\u6c7a\u5b9a\u3002\u4f5c\u70ba\u6211\u5011\u512a\u5316\u7b56\u7565\u7684\u4e00\u90e8\u5206\uff0c\u6211\u5011\u53d6\u4ee3\u4e86\u91cd\u91cf\u7d1a\u7684 JS \u5eab\uff0c\u4f8b\u5982\u7528\u66f4\u6709\u6548\u7387\u7684\u66ff\u63db\u5ee3\u6cdb\u4f7f\u7528\u7684\u300cclassnames\u300d\u5957\u4ef6 <a href=\"https:\/\/github.com\/lukeed\/clsx\/tree\/4c9a55df075eb96d968e09e56cfa3ba57a5bbdca\/bench\">&#039;clsx&#039;<\/a>\uff0c\u4e00\u500b\u66f4\u5feb\u3001\u66f4\u5c0f\u5de7\u7684\u76f4\u63a5\u66ff\u4ee3\u54c1\uff0c\u5c08\u70ba\u6211\u5011\u7684\u7db2\u7ad9\u9700\u6c42\u91cf\u8eab\u5b9a\u5236\u3002<\/p>\n<p>\u96a8\u5f8c\uff0c\u5229\u7528 <a href=\"https:\/\/github.com\/webpack-contrib\/webpack-bundle-analyzer\">Webpack \u6346\u7d81\u5206\u6790\u5668<\/a> \u63d2\u4ef6\uff0c\u6211\u5011\u627e\u51fa\u4e86\u6346\u7d81\u5305\u4e2d\u7684\u554f\u984c\u5340\u57df\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1lbpode7xpv2ygopufl0.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1lbpode7xpv2ygopufl0.png\" alt=\"\u4e4b\u524d\u4f7f\u7528\u6346\u7d81\u5206\u6790\u5668\u7e6a\u88fd\u7684\u5716\u8868\" \/><\/a><br \/>\n<em>\u6346\u7d81\u5206\u6790\u5668\u63ed\u793a\u4e86\u6211\u5011\u6700\u91cd\u8981\u7684\u6346\u7d81 - \u5ba2\u6236\u4f4d\u7f6e\u548c\u5e36\u6709\u9583\u720d\u9ede\u7684\u5730\u5716<\/em><\/p>\n<p>\u70ba\u4e86\u5256\u6790\u9019\u4e9b\u6587\u4ef6\u7d44\u5408\uff0c\u6211\u5011\u5229\u7528\u7a0b\u5f0f\u78bc\u5206\u5272\u548c\u5ef6\u9072\u8f09\u5165\u5c07\u5927\u5305\u5206\u5272\u6210\u66f4\u5c0f\u7684\u5143\u4ef6\u3002 Webpack \u7684\u6574\u5408\u7a0b\u5f0f\u78bc\u5206\u5272\u529f\u80fd\u5141\u8a31\u6211\u5011\u5c07 import \u547d\u4ee4\u4fee\u6539\u70ba\u6307\u5411\u6a94\u6848\u8def\u5f91\u800c\u4e0d\u662f\u76f4\u63a5\u532f\u5165\u6a94\u6848\u7684\u51fd\u6578\u3002\u9019\u6703\u7522\u751f\u4e00\u500b\u627f\u8afe\uff0c\u985e\u4f3c\u65bc\u6587\u4ef6\u5c07\u88ab\u8f09\u5165\u7684\u627f\u8afe\u3002\u7576\u7a0b\u5f0f\u78bc\u4e2d\u51fa\u73fe\u985e\u4f3c\u7684\u7d50\u69cb\u6642\uff0c\u5c31\u6703\u514c\u73fe\u9019\u9805\u627f\u8afe\uff0c\u4e26\u8f09\u5165\u6a94\u6848\u3002<\/p>\n<p>\u5c0d\u65bc\u975e\u5fc5\u8981\u7684\u8996\u5716\u3001HTML \u548c JS\uff0c\u6211\u5011\u5229\u7528\u52d5\u614b\u532f\u5165\u4f86\u6e1b\u5c11\u7db2\u9801\u7684\u521d\u59cb\u5927\u5c0f\u3002\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u52d5\u614b\u610f\u5473\u8457\u7db2\u7ad9\u6839\u64da\u7279\u5b9a\u689d\u4ef6\u78ba\u5b9a\u662f\u5426\u8f09\u5165\u88dc\u5145\u6587\u4ef6\uff0c\u78ba\u4fdd\u5b83\u4e0d\u6703\u7834\u58de\u4f7f\u7528\u8005\u9ad4\u9a57\u3002<br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frcs4cfrvufem6ntqjes6.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frcs4cfrvufem6ntqjes6.png\" alt=\"\u6346\u7d81\u5206\u6790\u5668\u4e4b\u5f8c\u7684\u5716\u8868\" \/><\/a><br \/>\n<em>\u9019\u662f\u6211\u5011\u512a\u5316\u7684\u7d50\u679c\uff1a\u6c92\u6709\u5b64\u7acb\u7684\u64f4\u5145\u5305\u7684\u7cbe\u7d30\u52a0\u8f09\u904e\u7a0b<\/em><\/p>\n<p><strong>\u5c07\u5927\u91cf\u5305\u5206\u5272\u6210\u66f4\u5c0f\u7684\u90e8\u5206\u5f8c\uff0c\u6211\u5011\u6709\u6548\u5730\u6e1b\u8f15\u4e86\u9801\u9762\u7684\u91cd\u91cf\u4e26\u6d88\u9664\u4e86\u6240\u6709\u5927\u91cf\u7684\u6587\u4ef6\u96c6\u5408\u3002<\/strong><\/p>\n<h3><a id=\"6-minimizing-html-and-css-with-code-compression\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>6.\u900f\u904e\u7a0b\u5f0f\u78bc\u58d3\u7e2e\u58d3\u7e2eHTML\u548cCSS<\/h3>\n<p>\u7a0b\u5f0f\u78bc\u58d3\u7e2e\u5fb9\u5e95\u6539\u8b8a\u4e86\u6211\u5011\u7684\u65b9\u6cd5\u3002\u900f\u904e\u58d3\u7e2e\u7a0b\u5f0f\u78bc\u4e26\u7701\u7565\u4e0d\u5fc5\u8981\u7684\u7a7a\u9593\uff0c\u6211\u5011\u5be6\u73fe\u4e86\u6e1b\u5c0f\u6a94\u6848\u5927\u5c0f\u3001\u5feb\u901f\u4e0b\u8f09\u548c\u6700\u5c0f\u5316\u983b\u5bec\u4f7f\u7528\u3002\u76ee\u524d\uff0c\u6211\u5011\u7684\u4f3a\u670d\u5668\u4ee5gzip \u683c\u5f0f\u5206\u767c\u7db2\u7ad9\u6587\u4ef6\uff0c\u5f9e\u800c\u63d0\u9ad8\u4e86\u901f\u5ea6\uff0c\u5c24\u5176\u662f\u5c07FCP \u548cFID\uff08\u9996\u6b21\u8f38\u5165\u5ef6\u9072\uff0c\u4e00\u7a2e\u8861\u91cf\u521d\u59cb\u9ede\u64ca\u548c\u700f\u89bd\u5668\u97ff\u61c9\u4e4b\u9593\u7684\u5ef6\u9072\u7684\u6307\u6a19\uff09\u7b49\u95dc\u9375\u6307\u6a19\u5f9e\u6b21\u512a\u63d0\u5347\u5230\u4e2d\u7b49\u6027\u80fd\u7b49\u7d1a\u3002<\/p>\n<h3><a id=\"7-code-quality-and-memory-leaks\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>7. \u63d0\u9ad8\u7a0b\u5f0f\u78bc\u54c1\u8cea\u4e26\u89e3\u6c7a\u8a18\u61b6\u9ad4\u6d29\u6f0f\u554f\u984c<\/h3>\n<p>\u7d93\u904e\u4ed4\u7d30\u6aa2\u67e5\uff0c\u6211\u5011\u5728\u7a0b\u5f0f\u78bc\u5eab\u4e2d\u767c\u73fe\u4e86\u4e00\u4e9b\u72e1\u733e\u7684\u8a18\u61b6\u9ad4\u6d29\u6f0f\u3002\u9019\u500b\u554f\u984c\u6e90\u65bc\u8a18\u61b6\u9ad4\u4e2d\u63ee\u4e4b\u4e0d\u53bb\u7684\u5c0d\u8c61\uff0c\u5373\u4f7f\u4e0d\u518d\u9700\u8981\u5b83\u5011\uff0c\u4e5f\u6703\u5c0e\u81f4\u74b0\u5883\u64c1\u64e0\u3002<\/p>\n<p>\u70ba\u4e86\u7cfe\u6b63\u9019\u500b\u554f\u984c\uff0c\u6211\u5011\u5be6\u65bd\u4e86\u5169\u7a2e\u65b9\u6cd5\u3002\u5982\u679c\u4e8b\u4ef6\u76e3\u807d\u5668\u53ea\u9700\u8981\u4e00\u6b21\uff0c\u6211\u5011\u9078\u64c7\u4f7f\u7528 {only: true} \u53c3\u6578\u3002\u6b64\u53c3\u6578\u4fdd\u8b49\u5075\u807d\u5668\u5728\u89f8\u767c\u5f8c\u81ea\u52d5\u522a\u9664\uff0c\u5f9e\u800c\u6e1b\u8f15\u4efb\u4f55\u8207\u8a18\u61b6\u9ad4\u76f8\u95dc\u7684\u8907\u96dc\u6027\u3002\u6b64\u5916\uff0c\u6211\u5011\u78ba\u4fdd\u900f\u904e\u5229\u7528removeEventListener()\u65b9\u6cd5\u660e\u78ba\u6d88\u9664\u4e8b\u4ef6\u5075\u807d\u5668\u3002\u6b64\u6b65\u9a5f\u662f\u5728\u522a\u9664\u5143\u7d20\u4e4b\u524d\u6216\u5075\u807d\u5668\u904e\u6642\u5f8c\u57f7\u884c\u7684\u3002\u6b64\u985e\u64cd\u4f5c\u6709\u52a9\u65bc\u5143\u7d20\u548c\u51fd\u6578\u4e4b\u9593\u7684\u7121\u7e2b\u65b7\u958b\uff0c\u5f9e\u800c\u907f\u514d\u8a18\u61b6\u9ad4\u6d29\u6f0f\u3002<\/p>\n<p>\u95dc\u65bc addEventListener \u9700\u8981\u8003\u616e\u7684\u53e6\u4e00\u500b\u9762\u5411\u662f\u5408\u4f75 {passive: true } \u53c3\u6578\u3002\u4e8b\u5be6\u8b49\u660e\uff0c\u9019\u7a2e\u8abf\u6574\u6709\u5229\u65bc\u6efe\u52d5\u4e92\u52d5\u3001\u9632\u6b62\u4ecb\u9762\u4e2d\u65b7\u4e26\u6709\u52a9\u65bc\u589e\u5f37\u4f7f\u7528\u8005\u9ad4\u9a57\u3002<\/p>\n<p><code>   useEffect(() =&gt; { setScrolled(document.documentElement.scrollTop &gt; 50); window.addEventListener(&#039;scroll&#039;, handleScroll, { Passive: true }); return () =&gt; { document.body.style.overflowY = &#039;\u6efe\u52d5&#039;; window.removeEventListener(&#039;\u6efe\u52d5&#039;,handleScroll);   <\/code><\/p>\n<h3><a id=\"before-and-after-how-performance-boost-impacted-our-website\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u5f9e\u4e4b\u524d\u5230\u4e4b\u5f8c\uff1a\u6548\u80fd\u589e\u5f37\u5c0d\u6211\u5011\u7db2\u7ad9\u7684\u5f71\u97ff<\/h3>\n<p>\u5766\u767d\u8aaa\uff0c\u6211\u5011\u6700\u521d\u7684\u5b9a\u4f4d\u4e26\u4e0d\u7406\u60f3\u2014\u2014\u8f09\u5165\u6642\u9593\u7de9\u6162\uff0c\u4f3a\u670d\u5668\u4e0d\u582a\u91cd\u8ca0\uff0c\u56b4\u91cd\u5f71\u97ff\u4e86\u4f7f\u7528\u8005\u9ad4\u9a57\u3002\u7136\u800c\uff0c\u6191\u85c9\u5bf6\u8cb4\u7684\u898b\u89e3\u548c\u512a\u5316\u7b56\u7565\uff0c\u6211\u5011\u81f4\u529b\u65bc\u9019\u9805\u4efb\u52d9\u4e26\u53d6\u5f97\u4e86\u4ee4\u4eba\u5370\u8c61\u6df1\u523b\u7684\u6210\u679c\u3002\u6211\u5011\u5c0d\u7d50\u679c\u6eff\u610f\u55ce\uff1f\u7121\u7591\u3002<\/p>\n<p><a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5iu7vw86tbc88yw8y08d.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5iu7vw86tbc88yw8y08d.png\" alt=\"Lighthouse \u6307\u6a19\u7684\u87a2\u5e55\u622a\u5716\" \/><\/a><br \/>\n<em><a href=\"https:\/\/pagespeed.web.dev\/\">\u9801\u9762\u901f\u5ea6\u6d1e\u5bdf<\/a> \u70ba\u6211\u5011\u63d0\u4f9b\u4e86\u4e00\u4efd\u503c\u5f97\u7a31\u8b9a\u7684\u6210\u7e3e\u55ae\uff0c\u5f37\u8abf\u4e86\u5be6\u8cea\u7684\u6539\u9032<\/em><br \/>\n<a href=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy44umhfi677w90hq2ado.png\"><img decoding=\"async\" src=\"https:\/\/media.dev.to\/cdn-cgi\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy44umhfi677w90hq2ado.png\" alt=\"Core Web Vitals \u6307\u6a19\u7684\u87a2\u5e55\u622a\u5716\" \/><\/a><br \/>\n<em>\u70ba\u671f\u4e00\u500b\u6708\u7684\u7e3e\u6548\u8a55\u4f30\u986f\u793a\u51fa\u986f\u8457\u7684\u9032\u6b65 - \u8207\u6211\u5011\u7684\u8d77\u9ede\u76f8\u6bd4\uff0c\u6240\u6709\u6307\u6a19\u90fd\u986f\u793a\u51fa\u591a\u9805\u6539\u9032<\/em><\/p>\n<p>\u5982\u679c\u6c92\u6709\u7121\u6578\u65e5\u591c\u7684\u5c08\u6ce8\u52aa\u529b\uff0c\u9019\u4e9b\u8f49\u8b8a\u662f\u4e0d\u53ef\u80fd\u5be6\u73fe\u7684\u3002\u7136\u800c\uff0c\u5c0d\u6211\u5011\u7684\u52dd\u5229\u6709\u91cd\u5927\u8ca2\u737b\u7684\u53e6\u4e00\u500b\u56e0\u7d20\u662f\u4f7f\u7528\u9069\u7576\u7684\u5de5\u5177\u3002\u67d0\u4e9b\u5de5\u5177\u4e0d\u50c5\u7bc0\u7701\u4e86\u6211\u5011\u7684\u6642\u9593\uff0c\u800c\u4e14\u503c\u5f97\u8a8d\u53ef\u3002<\/p>\n<h4><a id=\"tools-for-performance-optimization-pagespeed-insights-and-lighthouse\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u63d0\u5347\u6548\u80fd\u7684\u5de5\u5177\uff1aPageSpeed Insights \u548c Lighthouse<\/h4>\n<p>\u5728\u6548\u80fd\u8a55\u4f30\u548c\u589e\u5f37\u9818\u57df\uff0c\u6709\u5169\u500b Google \u5be6\u7528\u7a0b\u5f0f\u812b\u7a4e\u800c\u51fa\uff1a <a href=\"https:\/\/pagespeed.web.dev\/\">PageSpeed \u898b\u89e3<\/a> \u548c <a href=\"https:\/\/developer.chrome.com\/docs\/lighthouse\/overview\">\u71c8\u5854<\/a>\u3002\u9019\u4e9b\u5de5\u5177\u6703\u4ed4\u7d30\u6aa2\u67e5\u7db2\u9801\u7684\u5404\u500b\u65b9\u9762\uff0c\u4ee5\u63d0\u4f9b\u6709\u95dc\u5176\u901f\u5ea6\u3001\u4f7f\u7528\u8005\u9ad4\u9a57\u548c\u6574\u9ad4\u6548\u80fd\u7684\u898b\u89e3\u3002\u4ee5\u4e0b\u662f\u4ed6\u5011\u5171\u540c\u8a55\u4f30\u7684\u6307\u6a19\uff1a<\/p>\n<ul>\n<li><strong>\u6700\u5927\u5167\u5bb9\u5857\u6599 (LCP)<\/strong> \u2013 \u6e2c\u91cf\u53ef\u898b\u5340\u57df\u4e2d\u6700\u5927\u5167\u5bb9\u5143\u7d20\uff08\u4f8b\u5982\u5716\u50cf\u6216\u6587\u5b57\u5340\u584a\uff09\u5c0d\u4f7f\u7528\u8005\u53ef\u898b\u7684\u6301\u7e8c\u6642\u9593\u3002<\/li>\n<li><strong>\u9996\u6b21\u5167\u5bb9\u7e6a\u88fd (FCP)<\/strong> \u2013 \u6e2c\u91cf\u700f\u89bd\u5668\u5448\u73fe\u521d\u59cb\u5167\u5bb9\u7247\u6bb5\uff08\u4f8b\u5982\u6587\u5b57\u6216\u5716\u50cf\uff09\u7684\u6642\u9593\u3002<\/li>\n<li><strong>\u9996\u6b21\u8f38\u5165\u5ef6\u9072 (FID)<\/strong> \u2013 \u8a55\u4f30\u4f7f\u7528\u8005\u7684\u4e3b\u8981\u4e92\u52d5\uff08\u4f8b\u5982\uff0c\u6309\u9215\u9ede\u64ca\uff09\u548c\u700f\u89bd\u5668\u5c0d\u8a72\u64cd\u4f5c\u7684\u56de\u61c9\u4e4b\u9593\u7684\u5ef6\u9072\u3002<\/li>\n<li><strong>\u7d2f\u7a4d\u4f48\u5c40\u504f\u79fb (CLS)<\/strong> \u2013 \u8a08\u7b97\u9801\u9762\u751f\u547d\u9031\u671f\u5167\u767c\u751f\u7684\u6240\u6709\u55ae\u7368\u4f48\u5c40\u8f49\u8b8a\u5206\u6578\u7684\u7e3d\u548c\u3002\u7576\u9801\u9762\u4e0a\u7684\u53ef\u898b\u5143\u7d20\u610f\u5916\u79fb\u52d5\u6642\uff0c\u5c31\u6703\u767c\u751f\u4f48\u5c40\u8b8a\u66f4\u3002<\/li>\n<li><strong>\u8207\u4e0b\u4e00\u500b\u6cb9\u6f06\u7684\u4e92\u52d5 (INP)<\/strong> \u2013 \u8a08\u7b97\u700f\u89bd\u5668\u900f\u904e\u66f4\u65b0\u9801\u9762\u4e0a\u7684\u8996\u89ba\u5167\u5bb9\u5c0d\u4f7f\u7528\u8005\u4e92\u52d5\uff08\u4f8b\u5982\u9ede\u64ca\u6216\u9ede\u64ca\uff09\u505a\u51fa\u53cd\u61c9\u7684\u6642\u9593\u3002<\/li>\n<li><strong>\u7b2c\u4e00\u500b\u5b57\u7bc0\u7684\u6642\u9593 (TTFB)<\/strong> \u2013 \u78ba\u5b9a\u700f\u89bd\u5668\u5728\u8acb\u6c42\u5f8c\u5f9e\u4f3a\u670d\u5668\u63a5\u6536\u521d\u59cb\u8cc7\u6599\u4f4d\u5143\u7d44\u7684\u6301\u7e8c\u6642\u9593\u3002<\/li>\n<li><strong>\u7e3d\u963b\u585e\u6642\u9593 (TBT)<\/strong> \u2013 \u91cf\u5316\u700f\u89bd\u5668\u4e3b\u57f7\u884c\u7dd2\u53d7\u963b\u4e14\u7121\u6cd5\u56de\u61c9\u4f7f\u7528\u8005\u8f38\u5165\u7684\u7e3d\u6301\u7e8c\u6642\u9593\u3002<\/li>\n<li><strong>TTI\uff08\u4ea4\u4e92\u6642\u9593\uff09<\/strong> \u2013 \u8a55\u4f30\u9801\u9762\u5b8c\u5168\u4e92\u52d5\u6240\u9700\u7684\u6642\u9593\uff0c\u9019\u8868\u793a\u6240\u6709\u5fc5\u9700\u7684\u8cc7\u6e90\u5747\u5df2\u52a0\u8f09\uff0c\u4e26\u4e14\u9801\u9762\u6703\u7acb\u5373\u56de\u61c9\u4f7f\u7528\u8005\u8f38\u5165\u3002<\/li>\n<li><strong>FID\uff08\u9996\u6b21\u8f38\u5165\u5ef6\u9072\uff09<\/strong> \u2013 \u4ed4\u7d30\u6aa2\u67e5\u4f7f\u7528\u8005\u7684\u521d\u59cb\u4e92\u52d5\u548c\u700f\u89bd\u5668\u5c0d\u8a72\u4e92\u52d5\u7684\u53cd\u61c9\u4e4b\u9593\u7684\u5ef6\u9072\u3002<\/li>\n<\/ul>\n<p>\u60a8\u53ef\u4ee5\u5229\u7528\u9019\u4e9b\u5de5\u5177\u4e4b\u4e00\u4f86\u6df1\u5165\u4e86\u89e3\u7db2\u7ad9\u7684\u6548\u80fd\u3002 Lighthouse \u63d0\u4f9b\u66f4\u5927\u7684\u9748\u6d3b\u6027\u548c\u8a73\u7d30\u7684\u898b\u89e3\uff0c\u800c PageSpeed Insights \u5247\u5c08\u6ce8\u65bc\u76e3\u63a7\u55ae\u4e00\u9801\u9762\u7684\u6548\u80fd\u3002<\/p>\n<p>\u96d6\u7136\u9019\u5169\u500b\u88ab\u5ee3\u6cdb\u4f7f\u7528\uff0c\u4f46\u5b83\u5011\u4e26\u4e0d\u662f\u6211\u5011\u7684\u552f\u4e00\u5efa\u8b70\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u53ef\u80fd\u5c0d\u60a8\u7684\u6548\u80fd\u512a\u5316\u4e4b\u65c5\u975e\u5e38\u6709\u50f9\u503c\u7684\u984d\u5916\u8cc7\u6e90\u3002<\/p>\n<h4><a id=\"bonus-tools-for-a-deeper-dive\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u5168\u9762\u63a2\u7d22\u7684\u88dc\u5145\u5de5\u5177<\/h4>\n<p><a href=\"https:\/\/gtmetrix.com\/\">GTMetrix<\/a>\uff1a\u4e00\u500b\u5f37\u5927\u7684\u5de5\u5177\uff0c\u4e0d\u50c5\u53ef\u4ee5\u5be9\u6838\u9801\u9762\uff0c\u9084\u53ef\u4ee5\u4ee5\u6613\u65bc\u7406\u89e3\u7684\u683c\u5f0f\u53ef\u8996\u5316\u52a0\u8f09\uff0c\u5f9e\u800c\u4f7f\u6027\u80fd\u589e\u5f37\u5207\u5be6\u53ef\u898b\u3002<\/p>\n<p><a href=\"https:\/\/yellowlab.tools\/\">\u9ec3\u8272\u5be6\u9a57\u5ba4\u5de5\u5177<\/a>\uff1a\u4e00\u500b\u5bcc\u6709\u6d1e\u5bdf\u529b\u7684\u5100\u8868\u677f\uff0c\u53ef\u5c0d\u773e\u591a\u6307\u6a19\u9032\u884c\u5206\u985e\u548c\u8a55\u4f30\u3002\u5b83\u4e0d\u50c5\u53ef\u4ee5\u8b58\u5225\u554f\u984c\uff0c\u9084\u53ef\u4ee5\u63d0\u4f9b\u8a73\u7d30\u7684\u6700\u4f73\u5316\u5efa\u8b70\u3002<\/p>\n<p>\u9019\u4e9b\u5de5\u5177\u5145\u7576\u4e86\u6211\u5011\u7684\u6307\u8def\u660e\u71c8\uff0c\u5e6b\u52a9\u6211\u5011\u63d0\u9ad8\u6548\u80fd\u4e26\u63d0\u4f9b\u5353\u8d8a\u7684\u4f7f\u7528\u8005\u9ad4\u9a57\u3002\u7576\u60a8\u8457\u624b\u63d0\u9ad8\u7db2\u7ad9\u6548\u80fd\u6642\uff0c\u8acb\u8a18\u4f4f\u5b83\u5011\u3002<\/p>\n<h4><a id=\"bottom-line\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u7d50\u8ad6<\/h4>\n<p>\u5982\u679c\u60a8\u7684\u696d\u52d9\u53d6\u6c7a\u65bc\u60a8\u7684\u7db2\u7ad9\uff0c\u90a3\u9ebc\u5ffd\u8996\u5176\u6548\u80fd\u662f\u4e0d\u53ef\u9078\u64c7\u7684\u3002\u9019\u65b9\u9762\u53ef\u4ee5\u5c07\u60a8\u63a8\u5230 Google \u641c\u5c0b\u7d50\u679c\u7684\u524d\u5217\uff0c\u6216\u8005\u76f8\u53cd\uff0c\u63d0\u793a\u7528\u6236\u9077\u79fb\u5230\u901f\u5ea6\u66f4\u5feb\u3001\u63d0\u4f9b\u5353\u8d8a\u9ad4\u9a57\u7684\u7db2\u7ad9\u3002\u70ba\u4e86\u907f\u514d\u9019\u7a2e\u56f0\u5883\uff0c\u6211\u5011\u5206\u4eab\u4e86\u6211\u5011\u7db2\u7ad9\u7684\u8f49\u8b8a\u6545\u4e8b\u3002<\/p>\n<p>\u6211\u5011\u8ffd\u6c42\u6700\u4f73\u6027\u80fd\u7684\u65c5\u7a0b\u4ecd\u5728\u7e7c\u7e8c\uff0c\u56e0\u70ba\u7e3d\u6709\u6539\u9032\u7684\u7a7a\u9593\u3002\u6700\u8fd1\uff0c\u6211\u5011\u89c0\u5bdf\u5230 GatsbyJS \u9762\u81e8\u4e00\u4e9b\u6311\u6230\uff0c\u4e26\u8003\u616e\u904e\u6e21\u5230 NextJS\u3002\u7136\u800c\uff0c\u9019\u7a2e\u5be9\u8b70\u503c\u5f97\u5728\u53e6\u4e00\u7bc7\u6587\u7ae0\u4e2d\u55ae\u7368\u8a0e\u8ad6\u3002<\/p>\n<p>\u6b63\u5982\u6c92\u6709\u5169\u500b\u4f01\u696d\u662f\u76f8\u540c\u7684\u4e00\u6a23\uff0c\u4e5f\u4e0d\u5b58\u5728\u63d0\u9ad8\u7db2\u7ad9\u6548\u80fd\u7684\u901a\u7528\u85cd\u5716\u3002\u6bcf\u500b\u5834\u666f\u90fd\u662f\u7368\u7279\u7684\uff0c\u9700\u8981\u63a1\u7528\u91cf\u8eab\u5b9a\u5236\u7684\u65b9\u6cd5\u4f86\u89e3\u6c7a\u60a8\u7684\u60c5\u6cc1\u4e2d\u9047\u5230\u7684\u7279\u5b9a\u6311\u6230\u3002\u96d6\u7136\u9019\u4e0d\u662f\u4e00\u9805\u8f15\u9b06\u7684\u4efb\u52d9\uff0c\u4f46\u6211\u5011\u96a8\u6642\u6e96\u5099\u597d\u63d0\u4f9b\u5354\u52a9\u3002\u5982\u679c\u60a8\u60f3\u63d0\u9ad8\u7db2\u7ad9\u7684\u6548\u80fd\uff0c\u8acb\u96a8\u6642 <a href=\"https:\/\/tenten.co\/contact\">\u806f\u7d61\u6211\u5011<\/a>\uff0c\u6211\u5011\u5c07\u63a2\u8a0e\u6211\u5011\u80fd\u70ba\u60a8\u505a\u4e9b\u4ec0\u9ebc\u3002<br \/>\n`<\/p>","protected":false},"excerpt":{"rendered":"\u300c\u65e9\u5728 2018 \u5e74\uff0cGoogle \u5c31\u66fe\u8868\u793a\uff0c\u9801\u9762\u901f\u5ea6\u73fe\u5728\u5c07\u5f71\u97ff\u5169\u8005\u7684\u6392\u540d\u2026","protected":false},"author":1,"featured_media":2418,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[241,233],"tags":[],"ppma_author":[290],"class_list":{"0":"post-4862","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-advanced-seo","8":"category-seo","9":"cs-entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.4 (Yoast SEO v22.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!) - AI SEO Agency<\/title>\n<meta name=\"description\" content=\"`Back in 2018, it was stated by Google that page swiftness will now impact the ranking on both desktop and mobile search outcomes. However, it&#039;s not just\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/seo.tenten.co\/zh\/seo\/\u63d0\u9ad8\u7db2\u7ad9\u901f\u5ea6\uff0c\u6548\u80fd\u7b49\u7d1a\u5f9e-30-\u63d0\u9ad8\u5230-99\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!)\" \/>\n<meta property=\"og:description\" content=\"`Back in 2018, it was stated by Google that page swiftness will now impact the ranking on both desktop and mobile search outcomes. However, it&#039;s not just\" \/>\n<meta property=\"og:url\" content=\"https:\/\/seo.tenten.co\/zh\/seo\/\u63d0\u9ad8\u7db2\u7ad9\u901f\u5ea6\uff0c\u6548\u80fd\u7b49\u7d1a\u5f9e-30-\u63d0\u9ad8\u5230-99\/\" \/>\n<meta property=\"og:site_name\" content=\"AI SEO Agency\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tentencreative\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-23T02:45:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-23T02:55:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/An-Introduction-to-Software-Defined-Networking-SDN-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pladora Maria\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/tentencreative\" \/>\n<meta name=\"twitter:site\" content=\"@tentencreative\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pladora Maria\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/\"},\"author\":{\"name\":\"Pladora Maria\",\"@id\":\"https:\/\/seo.tenten.co\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba\"},\"headline\":\"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!)\",\"datePublished\":\"2024-06-23T02:45:58+00:00\",\"dateModified\":\"2024-06-23T02:55:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/\"},\"wordCount\":3214,\"publisher\":{\"@id\":\"https:\/\/seo.tenten.co\/#organization\"},\"image\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Step-by-Step-Guide-Setting-up-Your-First-Kubernetes-Cluster-scaled.jpg\",\"articleSection\":[\"Advanced SEO\",\"SEO\"],\"inLanguage\":\"zh-TW\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/\",\"url\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/\",\"name\":\"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!) - AI SEO Agency\",\"isPartOf\":{\"@id\":\"https:\/\/seo.tenten.co\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Step-by-Step-Guide-Setting-up-Your-First-Kubernetes-Cluster-scaled.jpg\",\"datePublished\":\"2024-06-23T02:45:58+00:00\",\"dateModified\":\"2024-06-23T02:55:44+00:00\",\"description\":\"`Back in 2018, it was stated by Google that page swiftness will now impact the ranking on both desktop and mobile search outcomes. However, it's not just\",\"breadcrumb\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#primaryimage\",\"url\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Step-by-Step-Guide-Setting-up-Your-First-Kubernetes-Cluster-scaled.jpg\",\"contentUrl\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Step-by-Step-Guide-Setting-up-Your-First-Kubernetes-Cluster-scaled.jpg\",\"width\":2560,\"height\":1440},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/seo.tenten.co\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/seo.tenten.co\/#website\",\"url\":\"https:\/\/seo.tenten.co\/\",\"name\":\"AI SEO by Tenten - AI-Powered SEO + Technical SEO\",\"description\":\"We are AI SEO and Technical SEO agency for SME, B2B &amp; Medical | Boost rankings and dominate search results with GPT4\",\"publisher\":{\"@id\":\"https:\/\/seo.tenten.co\/#organization\"},\"alternateName\":\"TentenAI SEO\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/seo.tenten.co\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/seo.tenten.co\/#organization\",\"name\":\"AI SEO by Tenten - AI-Powered SEO + Technical SEO\",\"alternateName\":\"TentenAI SEO\",\"url\":\"https:\/\/seo.tenten.co\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/seo.tenten.co\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/seo-s3.tenten.co\/2023\/12\/site-icon.png\",\"contentUrl\":\"https:\/\/seo-s3.tenten.co\/2023\/12\/site-icon.png\",\"width\":512,\"height\":512,\"caption\":\"AI SEO by Tenten - AI-Powered SEO + Technical SEO\"},\"image\":{\"@id\":\"https:\/\/seo.tenten.co\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tentencreative\/\",\"https:\/\/twitter.com\/tentencreative\",\"https:\/\/www.linkedin.com\/company\/tentenco\",\"https:\/\/www.instagram.com\/tenten.co\",\"https:\/\/www.youtube.com\/user\/tentencreative\",\"https:\/\/dribbble.com\/tentenco\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/seo.tenten.co\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba\",\"name\":\"Pladora Maria\",\"description\":\"Maria brings over 11 years of experience as a digital marketer, having worked both in-house and on the agency side. This diverse background enriches her writing with a wealth of practical insights. She specializes in crafting beginner-friendly articles on topics such as keyword research, on-page SEO, and content creation.\",\"sameAs\":[\"https:\/\/seo.tenten.co\",\"https:\/\/instagram.com\/tenten.co\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/tentencreative\"],\"url\":\"https:\/\/seo.tenten.co\/zh\/author\/tenten\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!) - AI SEO Agency","description":"`Back in 2018, it was stated by Google that page swiftness will now impact the ranking on both desktop and mobile search outcomes. However, it's not just","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/seo.tenten.co\/zh\/seo\/\u63d0\u9ad8\u7db2\u7ad9\u901f\u5ea6\uff0c\u6548\u80fd\u7b49\u7d1a\u5f9e-30-\u63d0\u9ad8\u5230-99\/","og_locale":"zh_TW","og_type":"article","og_title":"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!)","og_description":"`Back in 2018, it was stated by Google that page swiftness will now impact the ranking on both desktop and mobile search outcomes. However, it's not just","og_url":"https:\/\/seo.tenten.co\/zh\/seo\/\u63d0\u9ad8\u7db2\u7ad9\u901f\u5ea6\uff0c\u6548\u80fd\u7b49\u7d1a\u5f9e-30-\u63d0\u9ad8\u5230-99\/","og_site_name":"AI SEO Agency","article_publisher":"https:\/\/www.facebook.com\/tentencreative\/","article_published_time":"2024-06-23T02:45:58+00:00","article_modified_time":"2024-06-23T02:55:44+00:00","og_image":[{"width":2560,"height":1440,"url":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/An-Introduction-to-Software-Defined-Networking-SDN-scaled.jpg","type":"image\/jpeg"}],"author":"Pladora Maria","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/tentencreative","twitter_site":"@tentencreative","twitter_misc":{"\u4f5c\u8005:":"Pladora Maria","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"16 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#article","isPartOf":{"@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/"},"author":{"name":"Pladora Maria","@id":"https:\/\/seo.tenten.co\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba"},"headline":"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!)","datePublished":"2024-06-23T02:45:58+00:00","dateModified":"2024-06-23T02:55:44+00:00","mainEntityOfPage":{"@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/"},"wordCount":3214,"publisher":{"@id":"https:\/\/seo.tenten.co\/#organization"},"image":{"@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#primaryimage"},"thumbnailUrl":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Step-by-Step-Guide-Setting-up-Your-First-Kubernetes-Cluster-scaled.jpg","articleSection":["Advanced SEO","SEO"],"inLanguage":"zh-TW"},{"@type":"WebPage","@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/","url":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/","name":"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!) - AI SEO Agency","isPartOf":{"@id":"https:\/\/seo.tenten.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#primaryimage"},"image":{"@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#primaryimage"},"thumbnailUrl":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Step-by-Step-Guide-Setting-up-Your-First-Kubernetes-Cluster-scaled.jpg","datePublished":"2024-06-23T02:45:58+00:00","dateModified":"2024-06-23T02:55:44+00:00","description":"`Back in 2018, it was stated by Google that page swiftness will now impact the ranking on both desktop and mobile search outcomes. However, it's not just","breadcrumb":{"@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#primaryimage","url":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Step-by-Step-Guide-Setting-up-Your-First-Kubernetes-Cluster-scaled.jpg","contentUrl":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Step-by-Step-Guide-Setting-up-Your-First-Kubernetes-Cluster-scaled.jpg","width":2560,"height":1440},{"@type":"BreadcrumbList","@id":"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/seo.tenten.co\/"},{"@type":"ListItem","position":2,"name":"Enhancing Website Speed: Achieving a 99% Performance Grade (From 30!)"}]},{"@type":"WebSite","@id":"https:\/\/seo.tenten.co\/#website","url":"https:\/\/seo.tenten.co\/","name":"AI SEO by Tenten - AI-Powered SEO + Technical SEO","description":"We are AI SEO and Technical SEO agency for SME, B2B &amp; Medical | Boost rankings and dominate search results with GPT4","publisher":{"@id":"https:\/\/seo.tenten.co\/#organization"},"alternateName":"TentenAI SEO","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/seo.tenten.co\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/seo.tenten.co\/#organization","name":"AI SEO by Tenten - AI-Powered SEO + Technical SEO","alternateName":"TentenAI SEO","url":"https:\/\/seo.tenten.co\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/seo.tenten.co\/#\/schema\/logo\/image\/","url":"https:\/\/seo-s3.tenten.co\/2023\/12\/site-icon.png","contentUrl":"https:\/\/seo-s3.tenten.co\/2023\/12\/site-icon.png","width":512,"height":512,"caption":"AI SEO by Tenten - AI-Powered SEO + Technical SEO"},"image":{"@id":"https:\/\/seo.tenten.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tentencreative\/","https:\/\/twitter.com\/tentencreative","https:\/\/www.linkedin.com\/company\/tentenco","https:\/\/www.instagram.com\/tenten.co","https:\/\/www.youtube.com\/user\/tentencreative","https:\/\/dribbble.com\/tentenco"]},{"@type":"Person","@id":"https:\/\/seo.tenten.co\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba","name":"Pladora Maria","description":"Maria brings over 11 years of experience as a digital marketer, having worked both in-house and on the agency side. This diverse background enriches her writing with a wealth of practical insights. She specializes in crafting beginner-friendly articles on topics such as keyword research, on-page SEO, and content creation.","sameAs":["https:\/\/seo.tenten.co","https:\/\/instagram.com\/tenten.co","https:\/\/twitter.com\/https:\/\/twitter.com\/tentencreative"],"url":"https:\/\/seo.tenten.co\/zh\/author\/tenten\/"}]}},"authors":[{"term_id":290,"user_id":1,"is_guest":0,"slug":"tenten","display_name":"Pladora Maria","avatar_url":{"url":"https:\/\/seo-s3.tenten.co\/2024\/06\/Kelly-w.jpg","url2x":"https:\/\/seo-s3.tenten.co\/2024\/06\/Kelly-w.jpg"},"first_name":"Pladora","last_name":"Maria","user_url":"https:\/\/seo.tenten.co","job_title":"CMO","tiktok":"https:\/\/www.tiktok.com\/@tentencreative","youtube":"https:\/\/www.youtube.com\/user\/tentencreative","linkedin":"https:\/\/www.linkedin.com\/in\/pladoramaria\/","instagram":"https:\/\/instagram.com\/tenten.co","twitter":"https:\/\/twitter.com\/tentencreative","facebook":"","description":"Maria brings over 11 years of experience as a digital marketer, having worked both in-house and on the agency side. This diverse background enriches her writing with a wealth of practical insights. She specializes in crafting beginner-friendly articles on topics such as keyword research, on-page SEO, and content creation."}],"_links":{"self":[{"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/posts\/4862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/comments?post=4862"}],"version-history":[{"count":4,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/posts\/4862\/revisions"}],"predecessor-version":[{"id":4865,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/posts\/4862\/revisions\/4865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/media\/2444"}],"wp:attachment":[{"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/media?parent=4862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/categories?post=4862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/tags?post=4862"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/ppma_author?post=4862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}