{"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_cn\/seo\/\u63d0\u9ad8\u7f51\u7ad9\u901f\u5ea6\uff0c\u6027\u80fd\u7b49\u7ea7\u4ece-30-\u63d0\u9ad8\u5230-99\/","title":{"rendered":"\u63d0\u9ad8\u7f51\u7ad9\u901f\u5ea6\uff1a\u5b9e\u73b0 99% \u6027\u80fd\u7b49\u7ea7\uff08\u4ece 30 \u5f00\u59cb\uff01\uff09"},"content":{"rendered":"<p>\u201c\u65e9\u5728 2018 \u5e74\uff0cGoogle \u5c31\u6307\u51fa\uff0c\u9875\u9762\u901f\u5ea6\u73b0\u5728\u4f1a\u5f71\u54cd\u684c\u9762\u548c\u79fb\u52a8\u641c\u7d22\u7ed3\u679c\u7684\u6392\u540d\u3002\u7136\u800c\uff0c\u9875\u9762\u901f\u5ea6\u5f71\u54cd\u7684\u4e0d\u4ec5\u4ec5\u662f\u6392\u540d\u3002\u6839\u636e\u7814\u7a76\uff0c3 \u79d2\u7684\u9875\u9762\u52a0\u8f7d\u65f6\u95f4\u4f1a\u5bfc\u81f4 13% \u7684\u8df3\u51fa\u7387\uff0c\u8fd9\u8868\u660e\u9875\u9762\u901f\u5ea6\u4e0d\u4ec5\u4e0e\u641c\u7d22\u7ed3\u679c\u6709\u5173\uff0c\u8fd8\u4e0e\u7528\u6237\u4f53\u9a8c\u6709\u5173\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u5982\u679c\u60a8\u7684\u7f51\u7ad9\u8fd0\u884c\u7f13\u6162\uff0c\u60a8\u8be5\u600e\u4e48\u529e\uff1f\u63d0\u9ad8\u7f51\u7ad9\u6027\u80fd\u5e76\u975e\u6613\u4e8b\uff1b\u56e0\u6b64\uff0c\u8bb8\u591a\u516c\u53f8\u53ea\u662f\u8fdb\u884c\u5c0f\u5e45\u4f18\u5316\u4ee5\u786e\u4fdd\u5176\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u7684\u6392\u540d\u3002<\/p>\n<p>\u8bf7\u7ee7\u7eed\u9605\u8bfb\uff0c\u4e86\u89e3\u6211\u4eec\u5982\u4f55\u4ece 30 \u5206\u6027\u80fd\u8bc4\u7ea7\u8dc3\u5347\u81f3 99 \u5206\uff0c\u4ee5\u53ca\u4e3a\u4ec0\u4e48\uff08\u9664\u4e86\u5bf9\u6211\u4eec\u7684\u6210\u5c31\u611f\u5230\u65e0\u6bd4\u81ea\u8c6a\u4e4b\u5916\uff09\u62e5\u6709\u4e1a\u5185\u6700\u5feb\u7684\u7f51\u7ad9\u4e4b\u4e00\u503c\u5f97\u6211\u4eec\u4ed8\u51fa\u52aa\u529b\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>\u6bd5\u4e1a\u5178\u793c\uff1a\u89e3\u51b3\u7684\u969c\u788d\u548c\u5fc5\u8981\u6027<\/h3>\n<p>\u901a\u8fc7\u6539\u7248\u6211\u4eec\u7684\u7f51\u7ad9\uff0c\u6211\u4eec\u91cd\u70b9\u81f4\u529b\u4e8e\u5b9e\u73b0\u4e09\u4e2a\u4e3b\u8981\u76ee\u6807\uff1a<\/p>\n<ol>\n<li>\u901a\u8fc7\u5feb\u901f\u7684\u9875\u9762\u52a0\u8f7d\u3001\u6539\u8fdb\u7684\u7528\u6237\u4f53\u9a8c\u548c\u4e00\u6d41\u7684\u5185\u5bb9\u6765\u63d0\u9ad8\u8f6c\u5316\u7387\u3002<\/li>\n<li>\u63d0\u5347 SEO \u5e76\u5728\u641c\u7d22\u5f15\u64ce\u4e0a\u83b7\u5f97\u66f4\u597d\u7684\u53ef\u89c1\u6027\u3002<\/li>\n<li>\u901a\u8fc7\u5c55\u793a\u65b0\u9879\u76ee\u548c\u5ba2\u6237\u8bc4\u8bba\u6765\u63d0\u5347\u6211\u4eec\u7684\u54c1\u724c\u5f62\u8c61\u3002<\/li>\n<\/ol>\n<p>\u8fd9\u4e9b\u76ee\u6807\u6307\u5bfc\u6211\u4eec\u786e\u5b9a\u9700\u8981\u96c6\u6210\u7684\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u6211\u4eec\u4e3a\u5b9e\u73b0\u76ee\u6807\u800c\u63d0\u51fa\u7684\u5173\u952e\u529f\u80fd\uff1a<\/p>\n<ul>\n<li> \u7ed3\u6784\u65b0\u9896\u7684\u7f51\u9875\u5177\u6709\u4ee4\u4eba\u5370\u8c61\u6df1\u523b\u7684\u5916\u89c2\uff0c\u5c55\u793a\u4e86\u6211\u4eec\u7684\u670d\u52a1\u3001\u90e8\u95e8\u3001\u6280\u672f\u548c\u6848\u4f8b\u7814\u7a76\u3002<\/li>\n<li> \u589e\u5f3a\u7684\u535a\u5ba2\u6587\u7ae0\u9875\u9762\uff0c\u5177\u6709\u641c\u7d22\u529f\u80fd\u3001\u6807\u7b7e\u548c\u7c7b\u522b\u3002<\/li>\n<li> \u201c\u53d6\u5f97\u8054\u7cfb\u201d\u548c\u5176\u4ed6\u65b9\u4fbf\u6c9f\u901a\u7684\u65b9\u5f0f\u3002<\/li>\n<li> \u5404\u79cd\u7b2c\u4e09\u65b9\u96c6\u6210\uff1aGoogle \u6807\u7b7e\u7ba1\u7406\u5668\u3001Cookiebot \u548c Hubspot \u7b49\u3002<\/li>\n<\/ul>\n<p>\u603b\u7684\u6765\u8bf4\uff0c\u6211\u4eec\u7684\u76ee\u6807\u662f\u5efa\u7acb\u4e00\u4e2a\u5b89\u5168\u7684\u9759\u6001\u7f51\u7ad9\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u9009\u62e9\u4e86 GatsbyJS\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e0e\u6b64\u76ee\u6807\u65e0\u7f1d\u5951\u5408\u7684 React \u6846\u67b6\u3002<\/p>\n<p>\u4f60\u95ee\uff0c\u4e3a\u4ec0\u4e48\u662f\u76d6\u8328\u6bd4\uff1f <a href=\"https:\/\/www.gatsbyjs.com\/\">@GatsbyJS<\/a> \u5728\u4e8e\u5b83\u80fd\u591f\u901a\u8fc7\u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u534f\u8c03\u9884\u6784\u5efa\u7684 HTML\u3001CSS \u548c JavaScript\uff0c\u5c06 Web \u5f00\u53d1\u8f6c\u53d8\u4e3a\u4e00\u4e2a\u987a\u7545\u800c\u5feb\u901f\u7684\u8fc7\u7a0b\u3002GatsbyJS \u4f7f\u7528 React \u6784\u5efa\uff0c\u4f7f\u6211\u4eec\u80fd\u591f\u521b\u5efa\u81ea\u5df1\u7684\u6a21\u677f\u548c\u7ec4\u4ef6\uff0c\u5e76\u5229\u7528 React \u751f\u6001\u7cfb\u7edf\u7684\u6269\u5c55\u3002<\/p>\n<p>\u6539\u7248\u7f51\u7ad9\u9700\u8981\u5173\u6ce8\u7684\u53e6\u4e00\u4e2a\u65b9\u9762\u662f API \u540e\u7aef\u3002\u6211\u4eec\u7684\u504f\u597d\u662f <a href=\"https:\/\/www.gatsbyjs.com\/\">@Strapi<\/a>\uff0c\u4e00\u4e2a\u5f00\u6e90\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf\u3002\u8be5\u7cfb\u7edf\u4e0d\u4ec5\u5141\u8bb8\u6211\u4eec\u5b9a\u5236\u6570\u636e\u7ed3\u6784\u5e76\u6269\u5c55 API \u529f\u80fd\u4ee5\u7ba1\u7406\u6587\u672c\u3001\u56fe\u50cf\u548c\u89c6\u9891\u7b49\u5404\u79cd\u5185\u5bb9\u683c\u5f0f\uff0c\u800c\u4e14\u8fd8\u4e3a\u6211\u4eec\u8282\u7701\u4e86\u5927\u91cf\u7684\u65f6\u95f4\u548c\u8d44\u6e90\u2014\u2014\u5f97\u76ca\u4e8e\u5176\u7528\u6237\u53cb\u597d\u7684\u7ba1\u7406\u9762\u677f\u548c\u8865\u5145\u529f\u80fd\uff0c\u907f\u514d\u4e86\u4ece\u5934\u5f00\u59cb\u5f00\u53d1\u4e00\u5207\u7684\u5fc5\u8981\u6027\u3002<\/p>\n<p>\u6700\u540e\uff0c\u5bf9\u4e8e\u670d\u52a1\u5668\u8bf7\u6c42\uff0c\u6211\u4eec\u5229\u7528\u4e86 GraphQL\u3002\u5b83\u4e0e GatsbyJS \u65e0\u7f1d\u517c\u5bb9\uff0c\u4f7f\u6211\u4eec\u80fd\u591f\u5b9a\u4e49\u67e5\u8be2\u683c\u5f0f\u5e76\u4ec5\u6307\u5b9a\u5fc5\u8981\u7684\u5b57\u6bb5\u548c\u5173\u7cfb\uff0c\u4ece\u800c\u907f\u514d\u591a\u4f59\u7684\u6570\u636e\uff0c\u8fdb\u800c\u7f29\u77ed\u9875\u9762\u52a0\u8f7d\u65f6\u95f4\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\u4eec\u5de5\u5382\u7684\u6280\u672f\u7ec4\u5408\" \/><\/a><br \/>\n<em>\u6280\u672f\u7684\u878d\u5408\u4f7f\u6211\u4eec\u80fd\u591f\u5b9e\u73b0\u6700\u4f73\u7684\u7f51\u7ad9\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027<\/em><\/p>\n<p>\u5b8c\u6210\u540e\uff0c\u65b0\u7f51\u7ad9\u7684\u6548\u679c\u5f88\u597d\uff0c\u6392\u540d\u63d0\u5347\uff0c\u8bbe\u8ba1\u7115\u7136\u4e00\u65b0\u3002\u8d77\u521d\u2026\u2026\u4f46\u540e\u6765\uff0c\u60c5\u51b5\u5f00\u59cb\u9010\u6e10\u6076\u5316\u3002\u968f\u7740\u65b0\u9875\u9762\u7684\u589e\u52a0\u3001\u4e00\u7cfb\u5217\u4fee\u6539\u548c\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u7684\u96c6\u6210\uff0c\u4ee3\u7801\u5e93\u8fc5\u901f\u81a8\u80c0\uff0c\u4ee5\u81f3\u4e8e\u6211\u4eec\u5728 Google \u7684 Lighthouse\uff08\u4e00\u79cd\u5206\u6790\u7f51\u9875\u901f\u5ea6\u7684\u5de5\u5177\uff09\u4e0a\u7684\u6027\u80fd\u8bc4\u7ea7\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=\"\u6211\u4eec\u5f00\u59cb\u4e4b\u524d\u7684\u706f\u5854\u5206\u6570\u5f88\u4f4e\" \/><\/a><br \/>\n<em>\u5728\u5f00\u59cb\u6539\u8fdb\u5de5\u4f5c\u4e4b\u524d\uff0c\u706f\u5854\u4f1a\u7ed9\u6211\u4eec\u7684\u7f51\u7ad9\u8bc4\u5206<\/em><\/p>\n<p>\u5206\u6570\u5982\u6b64\u4f4e\u4e0b\uff0cGoogle \u4e0d\u4f1a\u7ed9\u6211\u4eec\u5e26\u6765\u4efb\u4f55\u597d\u5904\u3002\u800c\u4e14\uff0c\u5373\u4f7f\u5b83\u80fd\u7ed9\u6211\u4eec\u5e26\u6765\u597d\u5904\uff0c\u7528\u6237\u4e5f\u4e0d\u4f1a\u5fcd\u53d7\u7b49\u5f85\u52a0\u8f7d\u7684\u8fc7\u7a0b\u3002<\/p>\n<p><a href=\"https:\/\/www.ericsson.com\/assets\/local\/mobility-report\/documents\/2016\/ericsson-mobility-report-feb-2016-interim.pdf\">\u7231\u7acb\u4fe1\u7684\u7814\u7a76<\/a> \u8bf4\u660e\u79fb\u52a8\u8bbe\u5907\u4e0a\u9875\u9762\u52a0\u8f7d\u5ef6\u8fdf\u5e26\u6765\u7684\u538b\u529b\u5c31\u50cf\u9762\u5bf9\u6050\u6016\u7535\u5f71\u4e00\u6837\u3002\u6bcf\u4e00\u79d2\u90fd\u5bf9\u6027\u80fd\u81f3\u5173\u91cd\u8981\u3002\u4e86\u89e3\u4e86\u8fd9\u79cd\u56f0\u96be\u540e\uff0c\u6211\u4eec\u7acb\u5373\u5f00\u59cb\u7740\u624b\u6539\u5584\u7f51\u7ad9\u7684\u6027\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\u6761\u4e0d\u7d0a\u5730\u63d0\u9ad8\u7f51\u7ad9\u6548\u7387<\/h3>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u663e\u8457\u7684\u6027\u80fd\u63d0\u5347\uff0c\u6211\u4eec\u4ed4\u7ec6\u7814\u7a76\u4e86\u56f0\u6270\u7f51\u7ad9\u7684\u4e3b\u8981\u95ee\u9898\uff0c\u5e76\u5f00\u59cb\u52aa\u529b\u7ea0\u6b63\u6bcf\u4e00\u4e2a\u95ee\u9898\u3002\u4e0b\u9762\u9610\u8ff0\u4e86\u6211\u4eec\u5982\u4f55\u514b\u670d\u4e3b\u8981\u6311\u6218\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. \u7f51\u7edc\u8fde\u63a5\u8bbe\u7f6e\u52a0\u901f\u4e24\u500d<\/h3>\n<p><a href=\"https:\/\/gtmetrix.com\/\">\u901a\u7528\u8ba1\u91cf\u7cfb\u7edf<\/a>\uff0c\u4e00\u79cd\u63cf\u8ff0\u7f51\u7ad9\u52a0\u8f7d\u6a21\u5f0f\u7684\u5de5\u5177\uff0c\u5e2e\u52a9\u6211\u4eec\u7cbe\u786e\u5730\u5b9a\u4f4d\u5bfc\u81f4\u8fde\u63a5\u65f6\u95f4\u5ef6\u957f\u7684\u5916\u90e8\u57df\u8d44\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\u8f7d\u65f6\u95f4\u56fe\" \/><\/a><br \/>\n<em>\u7d2b\u8272\u7684\u65f6\u95f4\u8868\u793a\u57df\u540d\u670d\u52a1\u5668\u63a5\u6536\u57df\u540d IP \u5730\u5740\u8bf7\u6c42\u7684\u65f6\u95f4\uff0c\u800c\u6d45\u7eff\u8272\u8868\u793a\u670d\u52a1\u5668\u8fde\u63a5\u65f6\u95f4\u3002\u8fd9\u4e9b\u95f4\u9694\u5f88\u957f\uff0c\u56e0\u6b64\u6211\u4eec\u901a\u8fc7\u7f29\u77ed\u670d\u52a1\u5668\u8fde\u63a5\u65f6\u95f4\u6765\u52a0\u5feb\u5b83\u4eec\u3002<\/em><\/p>\n<p>\u4e3a\u4e86\u52a0\u5feb\u7f51\u7ad9\u901f\u5ea6\uff0c\u6211\u4eec\u5b9e\u65bd\u4e86\u5404\u79cd\u6280\u672f\u6539\u8fdb\u3002\u6700\u521d\uff0c\u6211\u4eec\u90e8\u7f72\u4e86\u8d44\u6e90\u63d0\u793a\uff0c\u5229\u7528 HTML <code>&lt;link&gt;<\/code> \u5c5e\u6027\u3002\u8fd9\u4e9b\u63d0\u793a\u6709\u52a9\u4e8e\u6d4f\u89c8\u5668\u5728\u8d44\u6e90\u8bf7\u6c42\u8f6c\u53d1\u5230\u670d\u52a1\u5668\u4e4b\u524d\u4e3b\u52a8\u5efa\u7acb\u8fde\u63a5\u3002\u5bf9\u4e8e\u6765\u81ea\u5916\u90e8\u57df\u7684\u8d44\u6e90\uff0c\u6211\u4eec\u52a0\u5165\u4e86 DNS \u9884\u53d6\u548c\u9884\u8fde\u63a5\u63d0\u793a\uff0c\u63d0\u524d\u6307\u793a\u6d4f\u89c8\u5668\u4e0e\u6307\u5b9a\u57df\u5efa\u7acb\u8fde\u63a5\u3002\u56e0\u6b64\uff0c\u5f53\u6d4f\u89c8\u5668\u9700\u8981\u6765\u81ea\u5916\u90e8\u57df\u7684\u8d44\u6e90\u65f6\uff0c\u5b83\u4eec\u4f1a\u8fc5\u901f\u52a0\u8f7d\uff0c\u56e0\u4e3a\u521d\u6b65\u8bbe\u7f6e\u5df2\u7ecf\u5b8c\u6210\u3002<\/p>\n<p>\u5bf9\u4e8e\u811a\u672c\u548c\u6837\u5f0f\u8868\u7b49\u5185\u90e8\u6587\u4ef6\uff0c\u6211\u4eec\u91c7\u7528\u4e86\u201c\u9884\u52a0\u8f7d\u201d\u548c\u201c\u9884\u53d6\u201d\u63d0\u793a\u3002\u8fd9\u4e9b\u63d0\u793a\u53ef\u786e\u4fdd\u5f53\u7528\u6237\u6d4f\u89c8\u6211\u4eec\u7f51\u7ad9\u7684\u9875\u9762\u65f6\uff0c\u4ece\u5176\u672c\u5730\u7f13\u5b58\u4e2d\u83b7\u53d6\u5fc5\u8981\u7684\u8d44\u6e90\uff0c\u800c\u65e0\u9700\u4ece\u8fdc\u7a0b\u670d\u52a1\u5668\u68c0\u7d22\u5b83\u4eec\uff0c\u4ece\u800c\u52a0\u5feb\u4e86\u8be5\u8fc7\u7a0b\u3002<\/p>\n<p><strong>\u8fd9\u4e9b\u4f18\u5316\u6709\u52a9\u4e8e\u5c06*\u6700\u5927\u5185\u5bb9\u7ed8\u5236\u65f6\u95f4\u4ece 2.9 \u79d2\u7f29\u77ed\u5230 0.8 \u79d2\uff0c\u5c06*\u9996\u6b21\u5185\u5bb9\u7ed8\u5236\u65f6\u95f4\u4ece 1 \u79d2\u7f29\u77ed\u5230 0.6 \u79d2\uff0c\u4ece\u800c\u4f7f\u6d4f\u89c8\u5668\u80fd\u591f\u52a0\u5feb\u8d44\u6e90\u52a0\u8f7d\u901f\u5ea6\u3002<\/strong><\/p>\n<p>*LCP\uff0c\u4e00\u79cd<a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/core-web-vitals\">\u57fa\u672c\u7f51\u7edc\u751f\u547d\u529b\u6307\u6807 <\/a> \u5b83\u91cf\u5316\u4e86\u4ece\u7528\u6237\u5f00\u59cb\u52a0\u8f7d\u9875\u9762\u5230\u6700\u7a81\u51fa\u7684\u56fe\u50cf\u51fa\u73b0\u5728\u89c6\u53e3\u4e2d\u7684\u6301\u7eed\u65f6\u95f4\u3002<\/p>\n<p>*FCP \u8868\u793a\u7528\u6237\u9996\u6b21\u8bbf\u95ee\u9875\u9762\u548c\u5185\u5bb9\u5728\u5c4f\u5e55\u4e0a\u5448\u73b0\u4e4b\u95f4\u7684\u95f4\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>\u901a\u8fc7\u5feb\u901f\u6587\u672c\u6e32\u67d3\u589e\u5f3a\u5b57\u4f53\u52a0\u8f7d<\/h3>\n<p>\u5728\u6211\u4eec\u7684\u5e73\u53f0\u4e2d\uff0c\u6211\u4eec\u6df7\u5408\u4f7f\u7528\u4e86\u4e2a\u6027\u5316\u548c\u516c\u5f00\u53ef\u7528\u7684\u5b57\u4f53\u3002\u6211\u4eec\u4ece Google \u5230 <a href=\"https:\/\/fontsource.org\/docs\/getting-started\/introduction\">\u5b57\u4f53\u6765\u6e90<\/a> \u96c6\u5408\uff0c\u56e0\u4e3a\u5b83\u4ee3\u8868\u4e86\u83b7\u53d6\u5b57\u4f53\u7684\u6700\u5feb\u65b9\u6cd5\u3002<\/p>\n<p>\u7136\u800c\uff0c\u5c3d\u7ba1\u6587\u672c\u662f\u4ece HTML \u6587\u4ef6\u4e2d\u68c0\u7d22\u5230\u7684\uff0c\u4f46\u5b57\u4f53\u5305\u7684\u52a0\u8f7d\u4ecd\u51fa\u73b0\u4e86\u5ef6\u8fdf\u3002\u4e3a\u4e86\u907f\u514d\u6587\u672c\u548c\u5b57\u4f53\u52a0\u8f7d\u4e4b\u95f4\u7684\u8fd9\u79cd\u8131\u8282\uff0c\u6211\u4eec\u6700\u521d\u7684\u7b56\u7565\u662f\u663e\u793a\u4e00\u4e2a\u6a21\u7cca\u7684\u540e\u5907\u5b57\u4f53\uff0c\u76f4\u5230\u6211\u4eec\u9996\u9009\u7684 Web \u5b57\u4f53\u5b8c\u5168\u52a0\u8f7d\u3002\u867d\u7136\u8fd9\u79cd\u65b9\u6cd5\u6709\u6548\uff0c\u4f46\u5b83\u5ef6\u957f\u4e86 LCP \u6307\u6807\uff0c\u4fc3\u4f7f\u6211\u4eec\u8c03\u6574\u7b56\u7565\u4ee5\u652f\u6301\u5feb\u901f\u6587\u672c\u6e32\u67d3\u3002<\/p>\n<p>\u5de5\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff1a\u9996\u5148\uff0c\u6d4f\u89c8\u5668\u5728\u6307\u5b9a\u7684\u5b57\u4f53\u7cfb\u5217\u4e2d\u8bc6\u522b\u53ef\u8bbf\u95ee\u7684\u5b57\u4f53\u5e76\u5c06\u5176\u90e8\u7f72\u7528\u4e8e\u6587\u672c\u6e32\u67d3\u3002\u968f\u540e\uff0c\u5728\u52a0\u8f7d\u539f\u59cb\u5b57\u4f53\u65f6\uff0c\u6d4f\u89c8\u5668\u4f1a\u65e0\u7f1d\u5730\u7528\u5fc5\u8981\u7684\u5b57\u4f53\u66ff\u6362\u521d\u59cb\u5b57\u4f53\u3002\u6b64\u7b56\u7565\u662f\u6700\u5feb\u7684\u5b57\u4f53\u52a0\u8f7d\u65b9\u6cd5\uff0c\u5c3d\u7ba1\u5b83\u5b58\u5728\u7531\u4e8e\u5b57\u4f53\u5927\u5c0f\u6539\u53d8\u800c\u5bfc\u81f4\u6587\u672c\u610f\u5916\u79fb\u52a8\u7684\u98ce\u9669\u3002\u4e3a\u4e86\u51cf\u8f7b\u5e03\u5c40\u504f\u79fb\u5e76\u4f18\u5316\u7d2f\u79ef\u5e03\u5c40\u504f\u79fb\uff08CLS\uff0c\u7528\u4e8e\u8ddf\u8e2a\u9875\u9762\u52a0\u8f7d\u671f\u95f4\u610f\u5916\u5143\u7d20\u4f4d\u79fb\u7684\u91cf\u8868\uff09\uff0c\u6211\u4eec\u5b9e\u65bd\u4e86 <a href=\"https:\/\/www.w3.org\/TR\/css-fonts-5\/\">CSS \u5b57\u4f53\u6a21\u5757 5 \u7ea7<\/a>\uff0c\u5305\u62ec\u4ee5\u4e0b\u5c5e\u6027\u7684\u4e00\u5957\u89c4\u8303 <em>\u5c3a\u5bf8\u8c03\u6574<\/em>, <em>\u4e0b\u964d\u8986\u76d6<\/em>\uff0c \u548c <em>\u884c\u95f4\u9699\u8986\u76d6<\/em>\uff0c\u8fd9\u6709\u52a9\u4e8e\u6211\u4eec\u907f\u514d\u5185\u5bb9\u8f6c\u53d8\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\u4f53\u65b9\u6cd5\u663e\u793a\u4e0b\u8f7d\u65f6\u95f4\u7684\u56fe\u8868\" \/><\/a><br \/>\n<em>CSS \u5b57\u4f53\u6a21\u5757 5 \u7ea7\u8868\u73b0\u5b8c\u7f8e\uff0c\u786e\u4fdd\u5b57\u4f53\u53d8\u5316\u4e0d\u4f1a\u5f71\u54cd\u5e03\u5c40<\/em><\/p>\n<p><strong>\u56e0\u6b64\uff0c\u4e09\u4e2a\u6307\u6807\uff08\u9996\u6b21\u5185\u5bb9\u7ed8\u5236\u3001\u6700\u5927\u5185\u5bb9\u7ed8\u5236\u548c\u7d2f\u79ef\u5e03\u5c40\u504f\u79fb\uff09\u5f97\u5230\u4e86\u589e\u5f3a\u3002\u7279\u522b\u662f\uff0cCLS \u4ece 0.143 \u79d2\u51cf\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\u5f3a\u56fe\u7247\u548c\u89c6\u9891\u7684\u52a0\u8f7d<\/h3>\n<p>\u6211\u4eec\u9047\u5230\u7684\u53e6\u4e00\u4e2a\u6027\u80fd\u6311\u6218\u662f\u5de8\u5927\u7684\u7f51\u7edc\u8d1f\u8f7d\u3002\u7f51\u7ad9\u5ba1\u6838\u53d1\u73b0\u6709\u5fc5\u8981\u901a\u8fc7\u51cf\u5c0f\u56fe\u50cf\u548c\u89c6\u9891\u7684\u5927\u5c0f\u800c\u4e0d\u5f71\u54cd\u8d28\u91cf\u6765\u7b80\u5316\u56fe\u50cf\u548c\u89c6\u9891\u7684\u52a0\u8f7d\u8fc7\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=\"\u8bf4\u660e\u5404\u79cd\u6587\u4ef6\u7c7b\u578b\u7684\u56fe\u8868\" \/><\/a><br \/>\n<em><a href=\"https:\/\/yellowlab.tools\/\">\u9ec4\u8272\u5b9e\u9a8c\u5ba4\u5de5\u5177<\/a> \u8bc4\u4f30\u8868\u660e\uff0c\u5728\u6240\u6709\u6587\u4ef6\u7c7b\u578b\u4e2d\uff0c\u89c6\u9891\u548c\u56fe\u50cf\u5bf9\u6211\u4eec\u7f51\u7ad9\u7684\u8d1f\u62c5\u975e\u5e38\u5927<\/em><\/p>\n<p>\u6211\u4eec\u7684\u7f51\u7ad9\u5305\u542b\u4e24\u79cd\u56fe\u50cf\u53d8\u4f53 - \u77e2\u91cf\u56fe\u50cf\uff08\u53ef\u7f29\u653e\u77e2\u91cf\u56fe\u5f62 (SVG) \u683c\u5f0f\uff09\u548c\u5149\u6805\u56fe\u50cf\uff08PNG \u548c JPG \u683c\u5f0f\uff09\u3002\u6bcf\u4e2a category \u90fd\u91c7\u7528\u4e86\u4e0d\u540c\u7684\u4f18\u5316\u6280\u672f\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 \u77e2\u91cf\u56fe\u50cf\u7684\u589e\u5f3a<\/h4>\n<p>\u77e2\u91cf\u56fe\u50cf\u901a\u5e38\u5177\u6709\u8f7b\u91cf\u7ea7\u7684\u7279\u6027\uff1b\u7136\u800c\uff0c\u5f53\u6bcf\u5f20\u56fe\u7247\u90fd\u9700\u8981\u4e00\u4e2a\u65b0\u7684 HTTP \u8bf7\u6c42\u6765\u52a0\u8f7d\u65f6\uff0c\u5c31\u4f1a\u51fa\u73b0\u95ee\u9898\uff0c\u4ece\u800c\u964d\u4f4e\u6027\u80fd\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u9009\u62e9\u91c7\u7528\u5185\u8054 SVG\uff0c\u5141\u8bb8\u5c06\u56fe\u50cf\u76f4\u63a5\u5d4c\u5165 HTML\u3002\u8fd9\u662f\u901a\u8fc7 <a href=\"https:\/\/www.gatsbyjs.com\/plugins\/gatsby-plugin-react-svg\/\"> \u2018gatsby-plugin-react-svg\u2019 <\/a>\uff0cGatsby \u6846\u67b6\u5185\u7684\u4e00\u4e2a\u63d2\u4ef6\uff0c\u7b80\u5316\u4e86\u8fd9\u4e00\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 \u6805\u683c\u56fe\u50cf\u7684\u589e\u5f3a <\/h4>\n<p>\u4e3a\u4e86\u52a0\u5feb PNG \u548c JPG \u56fe\u50cf\u7684\u52a0\u8f7d\u901f\u5ea6\uff0c\u6211\u4eec\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a\u73b0\u4ee3\u7684 .webP \u683c\u5f0f\uff0c\u4ee5\u4fdd\u8bc1\u5728\u8d28\u91cf\u635f\u5931\u6700\u5c0f\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\u51fa\u8272\u7684\u538b\u7f29\u6548\u679c\u3002\u540c\u6837\uff0c\u89c6\u9891\u4e5f\u4ece .mp4 \u8f6c\u6362\u4e3a .webM\uff0c\u4ee5\u786e\u4fdd\u589e\u5f3a\u538b\u7f29\u6548\u679c\u548c\u8d28\u91cf\u3002\u867d\u7136 .webP \u548c .webM \u88ab\u7528\u4f5c\u4e3b\u8981\u683c\u5f0f\uff0c\u4f46\u9884\u8ba1\u4f1a\u51fa\u73b0\u4e0e\u65e7\u7248\u6d4f\u89c8\u5668\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002\u4e3a\u4e86\u7f13\u89e3\u8fd9\u4e00\u95ee\u9898\uff0c\u5bf9\u4e8e\u4e0d\u652f\u6301 .webP \u548c .webM \u7684\u6d4f\u89c8\u5668\uff0c\u6211\u4eec\u4fdd\u7559\u4e86 .png\u3001.jpg \u548c .mp4 \u683c\u5f0f\u7684\u56de\u9000\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u56fe\u50cf\u663e\u793a\u9700\u8981\u9488\u5bf9\u5404\u79cd\u8bbe\u5907\u8fdb\u884c\u4f18\u5316\u3002\u5404\u79cd\u8bbe\u5907\uff08\u4f8b\u5982\u624b\u673a\u3001\u5e73\u677f\u7535\u8111\u3001\u7b14\u8bb0\u672c\u7535\u8111\u6216 4K \u663e\u793a\u5668\uff09\u9700\u8981\u4e0d\u540c\u7684\u56fe\u50cf\u5c3a\u5bf8\u3002\u4e3a\u624b\u673a\u548c 4K \u663e\u793a\u5668\u4e0a\u4f20\u76f8\u540c\u7684\u56fe\u50cf\u4f1a\u589e\u52a0\u7f51\u7ad9\u52a0\u8f7d\u65f6\u95f4\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u5b9e\u73b0\u4e86\u81ea\u9002\u5e94\u56fe\u5f62\uff0c\u5728\u4ee3\u7801\u4e2d\u5d4c\u5165\u4e86\u4e0d\u540c\u7684\u56fe\u50cf\u9009\u9879\uff0c\u4f7f\u6d4f\u89c8\u5668\u80fd\u591f\u6839\u636e\u7a97\u53e3\u5927\u5c0f\u3001\u5c4f\u5e55\u5206\u8fa8\u7387\u3001\u7f51\u7edc\u901f\u5ea6\u7b49\u56e0\u7d20\u9009\u62e9\u6700\u4f73\u56fe\u50cf\u3002\u901a\u8fc7\u5229\u7528\u4ee5\u4e0b\u8f6f\u4ef6\u5305 <a href=\"https:\/\/www.gatsbyjs.com\/plugins\/gatsby-background-image\/\"> \u2018gatsby \u80cc\u666f\u56fe\u7247\u2019 <\/a> \u548c <a href=\"https:\/\/www.gatsbyjs.com\/plugins\/gatsby-image\/\"> &#039;gatsby-image&#039; <\/a>\uff0c\u6211\u4eec\u9488\u5bf9\u4e0d\u540c\u7684\u8bbe\u5907\u521b\u5efa\u4e86\u591a\u4e2a\u56fe\u50cf\u53d8\u4f53\u3002\u5728 <a href=\"https:\/\/developer.chrome.com\/docs\/devtools\/network\/\">\u201c\u7f51\u7edc\u201d\u9009\u9879\u5361<\/a> \u4e0b\u9762\u7684\u5feb\u7167\u663e\u793a\u4e86\u201c\u5207\u6362\u8bbe\u5907\u5de5\u5177\u680f\u201d\uff0c\u6211\u4eec\u5728\u5176\u4e2d\u5207\u6362\u9875\u9762\u663e\u793a\u6a21\u5f0f\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=\"\u8bbe\u5907\u5de5\u5177\u680f\" \/><\/a><br \/>\n<em>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u542f\u7528\u4e86\u8bbe\u5907\u5de5\u5177\u680f\u6765\u4f18\u5316\u4e0d\u540c\u8bbe\u5907\u7684\u56fe\u50cf\u52a0\u8f7d<\/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=\"\u4f18\u5316\u4e86\u51cf\u5c0f\u6587\u4ef6\u5927\u5c0f\u7684\u540c\u4e00\u6587\u4ef6\u7684\u52a0\u8f7d\u8fc7\u7a0b\" \/><\/a><br \/>\n<em>\u6b64\u5904\u663e\u793a\u7684\u662f\u9488\u5bf9\u4e0d\u540c\u8bbe\u5907\u8fdb\u884c\u4e86\u4f18\u5316\u4e14\u5c3a\u5bf8\u51cf\u5c0f\u7684\u540c\u4e00\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 \u540e\u53f0\u56fe\u50cf\u7684\u5ef6\u8fdf\u52a0\u8f7d<\/h4>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u5b9e\u73b0\u4e86\u5ef6\u8fdf\u52a0\u8f7d\u548c\u6a21\u7cca\u56fe\u50cf\u6548\u679c\uff0c\u4ee5\u4fdd\u8bc1\u4ec5\u5728\u7528\u6237\u67e5\u770b\u56fe\u50cf\u65f6\u624d\u52a0\u8f7d\u56fe\u50cf\uff0c\u4ece\u800c\u4e30\u5bcc\u4e86\u80fd\u529b\u6709\u9650\u7684\u7528\u6237\u7684\u4f53\u9a8c<\/p>\n<p>\u5b9a\u4ef7\u8ba1\u5212\u6216\u7f13\u6162\u7684\u4e92\u8054\u7f51\u8fde\u63a5\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=\"\u89c6\u89c9\u6548\u679c\u5ef6\u8fdf\u52a0\u8f7d\u673a\u5236\u5982\u4f55\u8fd0\u4f5c\" \/><\/a><br \/>\n<em>\u8fd9\u8bf4\u660e\u4e86\u89c6\u89c9\u5185\u5bb9\u5ef6\u8fdf\u52a0\u8f7d\u529f\u80fd\u7684\u8fd0\u4f5c\u65b9\u5f0f<\/em><\/p>\n<p>\u6240\u6709\u7684\u8f9b\u82e6\u52aa\u529b\u90fd\u5f97\u5230\u4e86\u56de\u62a5\u2014\u2014\u6211\u4eec\u663e\u8457\u51cf\u5c11\u4e86\u7f51\u7ad9\u4e0a\u7684\u89c6\u89c9\u6548\u679c\u7684\u5c3a\u5bf8\uff0c\u540c\u65f6\u53c8\u4e0d\u5f71\u54cd\u8d28\u91cf\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=\"\u6765\u81ea Yellow Lab Tools \u7684\u8349\u56fe\" \/><\/a><br \/>\n<em>\u7ecf\u8fc7\u6539\u8fdb\u540e\uff0cYellow Lab Tools \u53d1\u73b0\uff0c\u89c6\u9891\u4f9d\u7136\u5360\u636e\u4e86\u9875\u9762\u5927\u90e8\u5206\u7684\u6743\u91cd\uff0c\u8fd9\u4e00\u70b9\u5e76\u4e0d\u4ee4\u4eba\u610f\u5916\uff0c\u4f46\u56fe\u7247\u7684\u8d1f\u8f7d\u5df2\u7ecf\u5927\u5927\u51cf\u5c11\uff08\u7d2b\u8272\u90e8\u5206\uff09<\/em><\/p>\n<p><strong>\u8fd9\u4e9b\u589e\u5f3a\u529f\u80fd\u5927\u5927\u4e30\u5bcc\u4e86\u7528\u6237\u4f53\u9a8c\u548c CLS \u548c LCP \u7b49\u6307\u6807\u3002\u901a\u8fc7\u4e13\u95e8\u5229\u7528 Gatsby \u751f\u6001\u7cfb\u7edf\u4e2d\u7684\u89c6\u89c9\u4f18\u5316\u6269\u5c55\uff0c\u6211\u4eec\u4fc3\u8fdb\u4e86\u6027\u80fd\u63d0\u5347\u7684\u8fc7\u7a0b\u3002<\/strong><\/p>\n<h3><a id=\"4-optimizing-caching\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>4. \u7b80\u5316\u7f13\u5b58<\/h3>\n<p>\u6211\u4eec\u5fc5\u987b\u627f\u8ba4\uff0c\u7f13\u5b58\uff08\u4e00\u79cd Web \u670d\u52a1\u5668\u4fdd\u5b58\u7f51\u9875\u526f\u672c\u7684\u65b9\u6cd5\uff09\u6700\u521d\u5728\u7f51\u7ad9\u521b\u5efa\u8fc7\u7a0b\u4e2d\u88ab\u5ffd\u7565\u4e86\u3002\u8fd9\u65e0\u7591\u662f\u4e00\u4e2a\u9519\u5931\u7684\u673a\u4f1a\uff0c\u56e0\u4e3a\u6709\u6548\u7684\u7f13\u5b58\u53ef\u4ee5\u52a0\u5feb\u7f51\u7ad9\u901f\u5ea6\u5e76\u51cf\u8f7b\u670d\u52a1\u5668\u8d1f\u62c5\u3002\u6211\u4eec\u51b3\u5fc3\u8d76\u4e0a\u7f13\u5b58\u4f18\u5316\uff0c\u4f46\u9047\u5230\u4e86\u5404\u79cd\u5177\u4f53\u969c\u788d\u3002<\/p>\n<p>\u6211\u4eec\u7684\u76ee\u6807\u662f\u901a\u8fc7\u4fdd\u5b58\u8d44\u6e90\u4ee5\u5907\u4e0b\u6b21\u8bbf\u95ee\u800c\u4e0d\u662f\u6bcf\u6b21\u90fd\u4e0b\u8f7d\u6765\u52a0\u5feb\u8d44\u6e90\u7684\u52a0\u8f7d\u901f\u5ea6\u3002\u4e3a\u4e86\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u6211\u4eec\u5728 HTTP \u6807\u5934\u4e2d\u4f7f\u7528\u4e86\u201ccache-control\u201d\u5c5e\u6027\uff0c\u5e76\u8bbe\u7f6e\u4e86\u6587\u4ef6\u5728\u7f13\u5b58\u4e2d\u4fdd\u7559\u7684\u65f6\u95f4\u3002\u7136\u800c\uff0c\u53e6\u4e00\u4e2a\u56f0\u5883\u51fa\u73b0\u4e86\u3002\u5728\u5bf9\u7f51\u7ad9\u5185\u5bb9\u6216\u8bbe\u8ba1\u8fdb\u884c\u4fee\u6539\u540e\uff0c\u66f4\u6539\u4e0d\u4f1a\u7acb\u5373\u663e\u793a\uff0c\u56e0\u4e3a\u6d4f\u89c8\u5668\u575a\u6301\u4f7f\u7528\u65e7\u7684\u5b58\u50a8\u526f\u672c\u3002<\/p>\n<p>\u6211\u4eec\u662f\u5982\u4f55\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\uff1f\u6211\u4eec\u5728\u6587\u4ef6\u540d\u79f0\u540e\u9762\u9644\u52a0\u4e86\u4e00\u4e2a\u54c8\u5e0c\u503c\uff0c\u6bcf\u6b21\u7f16\u8f91\u6587\u4ef6\u65f6\u90fd\u4f1a\u5237\u65b0\u8be5\u54c8\u5e0c\u503c\u3002\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u6211\u4eec\u80fd\u591f\u5c06\u6587\u4ef6\u4fdd\u5b58\u5728\u7f13\u5b58\u4e2d\u8f83\u957f\u65f6\u95f4\uff0c\u540c\u65f6\u4ecd\u80fd\u8f7b\u677e\u8fdb\u884c\u66f4\u6539\u3002\u7ed3\u679c\uff0c\u9996\u6b21\u5185\u5bb9\u7ed8\u5236 (FCP) \u6307\u6807\u4ece\u9ad8\u53d8\u4e3a\u4e2d\u7b49\u3002<\/p>\n<p>\u76ee\u524d\uff0c\u6211\u4eec\u6b63\u5728\u8003\u8651\u4e00\u79cd\u79f0\u4e3a\u6d4f\u89c8\u5668\u7f13\u5b58\u7684\u9644\u52a0\u7f13\u5b58\u5f62\u5f0f\u3002\u4e0e\u9700\u8981\u6c38\u4e45\u670d\u52a1\u5668\u8fde\u63a5\u5e76\u6d88\u8017\u5e26\u5bbd\u6765\u52a0\u8f7d\u54cd\u5e94\u7684\u670d\u52a1\u5668\u7f13\u5b58\u4e0d\u540c\uff0c\u6d4f\u89c8\u5668\u7f13\u5b58\u4f7f\u7528\u6237\u65e0\u9700\u7f51\u7edc\u8fde\u63a5\u5373\u53ef\u8bbf\u95ee\u7f51\u9875\u3002\u7136\u800c\uff0c\u5b83\u4e5f\u6709\u5176\u5c40\u9650\u6027\u2014\u2014\u5982\u679c\u7528\u6237\u7684\u8bbe\u5907\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3\uff0c\u6d4f\u89c8\u5668\u53ef\u80fd\u4f1a\u5220\u9664\u65e7\u6570\u636e\u4ee5\u5bb9\u7eb3\u65b0\u5185\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=\"\u7f13\u5b58\u5982\u4f55\u8fd0\u4f5c\" \/><\/a><br \/>\n<em>\u4e3a\u4e86\u8ba9\u60a8\u66f4\u597d\u5730\u7406\u89e3\uff0c\u8fd9\u91cc\u5e76\u5217\u4e86\u670d\u52a1\u5668\u7aef\u7f13\u5b58\u548c\u5ba2\u6237\u7aef\u7f13\u5b58\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>\u5305\u672c\u8d28\u4e0a\u7531\u6587\u4ef6\uff08\u901a\u5e38\u662f JavaScript\u3001CSS \u548c\u5176\u4ed6\u5c5e\u6027\uff09\u7ec4\u6210\uff0c\u8fd9\u4e9b\u6587\u4ef6\u88ab\u6574\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7684\u6587\u4ef6\uff0c\u4ee5\u4fbf\u66f4\u6709\u6548\u5730\u5206\u53d1\u3002\u968f\u7740\u6211\u4eec\u7f51\u7ad9\u7684\u590d\u6742\u6027\u4e0d\u65ad\u63d0\u9ad8\uff0c\u5305\u7684\u5927\u5c0f\u4e5f\u4e0d\u65ad\u589e\u52a0\uff0c\u5bfc\u81f4\u7f51\u7ad9\u8d1f\u62c5\u8fc7\u91cd\u3002\u73b0\u5728\u6b63\u662f\u627e\u51fa\u95ee\u9898\u90e8\u5206\u5e76\u4e22\u5f03\u5b83\u4eec\u7684\u5408\u9002\u65f6\u673a\u3002<\/p>\n<p>\u6709\u51e0\u79cd\u6709\u7528\u7684\u5de5\u5177\u53ef\u7528\u4e8e\u8bc6\u522b\u548c\u7ea0\u6b63\u6709\u95ee\u9898\u7684\u8f6f\u4ef6\u5305\u3002\u5176\u4e2d\u4e4b\u4e00\uff0c <a href=\"https:\/\/bundlephobia.com\/\">\u6346\u7ed1\u6050\u60e7\u75c7<\/a>\uff0c\u63d0\u4f9b\u6709\u5173 NPM \u5305\u5bf9\u6346\u7ed1\u5305\u5927\u5c0f\u7684\u8d21\u732e\u7a0b\u5ea6\u7684\u89c1\u89e3\uff0c\u6709\u52a9\u4e8e\u907f\u514d\u8fc7\u5927\u7684\u6587\u4ef6\u7f16\u8bd1\u3002 <a href=\"https:\/\/github.com\/wix\/import-cost\">\u8fdb\u53e3\u6210\u672c<\/a>VSCode \u6269\u5c55\u7a0b\u5e8f\u53ef\u8ba1\u7b97\u5bfc\u5165\u5305\u7684\u201c\u6210\u672c\u201d\uff0c\u4ece\u800c\u5e2e\u52a9\u60a8\u505a\u51fa\u660e\u667a\u7684\u51b3\u5b9a\u3002\u4f5c\u4e3a\u4f18\u5316\u7b56\u7565\u7684\u4e00\u90e8\u5206\uff0c\u6211\u4eec\u66ff\u6362\u4e86\u91cd\u91cf\u7ea7\u7684 JS \u5e93\uff0c\u4f8b\u5982\u5c06\u5e7f\u6cdb\u4f7f\u7528\u7684\u201cclassnames\u201d\u5305\u66ff\u6362\u4e3a\u66f4\u9ad8\u6548\u7684 <a href=\"https:\/\/github.com\/lukeed\/clsx\/tree\/4c9a55df075eb96d968e09e56cfa3ba57a5bbdca\/bench\">\u2018clsx\u2019<\/a>\uff0c\u4e00\u79cd\u66f4\u5feb\u6377\u3001\u66f4\u5c0f\u5de7\u7684\u5d4c\u5165\u5f0f\u66ff\u4ee3\u54c1\uff0c\u4e13\u95e8\u9488\u5bf9\u6211\u4eec\u7f51\u7ad9\u7684\u9700\u8981\u800c\u5b9a\u5236\u3002<\/p>\n<p>\u968f\u540e\uff0c\u5229\u7528 <a href=\"https:\/\/github.com\/webpack-contrib\/webpack-bundle-analyzer\">Webpack \u6346\u7ed1\u5206\u6790\u5668<\/a> \u63d2\u4ef6\uff0c\u6211\u4eec\u7cbe\u786e\u5730\u5b9a\u4f4d\u4e86\u6346\u7ed1\u5305\u4e2d\u5b58\u5728\u95ee\u9898\u7684\u533a\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=\"\u4f7f\u7528 Bundle Analyzer \u4e4b\u524d\u7ed8\u5236\u7684\u56fe\u8868\" \/><\/a><br \/>\n<em>Bundle Analyzer \u63a8\u51fa\u4e86\u6211\u4eec\u6700\u5b9e\u8d28\u6027\u7684\u6346\u7ed1\u5305 - \u5ba2\u6237\u4f4d\u7f6e\u548c\u5e26\u95ea\u70c1\u70b9\u7684\u5730\u56fe<\/em><\/p>\n<p>\u4e3a\u4e86\u5256\u6790\u8fd9\u4e9b\u6587\u4ef6\u96c6\u5408\uff0c\u6211\u4eec\u5229\u7528\u4ee3\u7801\u5206\u5272\u548c\u5ef6\u8fdf\u52a0\u8f7d\u5c06\u5927\u5305\u5206\u5272\u6210\u8f83\u5c0f\u7684\u7ec4\u4ef6\u3002Webpack \u7684\u96c6\u6210\u4ee3\u7801\u5206\u5272\u529f\u80fd\u5141\u8bb8\u6211\u4eec\u5c06\u5bfc\u5165\u547d\u4ee4\u4fee\u6539\u4e3a\u6307\u5411\u6587\u4ef6\u8def\u5f84\u7684\u51fd\u6570\uff0c\u800c\u4e0d\u662f\u76f4\u63a5\u5bfc\u5165\u6587\u4ef6\u3002\u8fd9\u4f1a\u4ea7\u751f\u4e00\u4e2a\u627f\u8bfa\uff0c\u7c7b\u4f3c\u4e8e\u6587\u4ef6\u5c06\u88ab\u52a0\u8f7d\u7684\u627f\u8bfa\u3002\u5f53\u4ee3\u7801\u4e2d\u51fa\u73b0\u7c7b\u4f3c\u7684\u7ed3\u6784\u65f6\uff0c\u5c31\u4f1a\u5151\u73b0\u8fd9\u4e2a\u627f\u8bfa\uff0c\u5e76\u52a0\u8f7d\u6587\u4ef6\u3002<\/p>\n<p>\u5bf9\u4e8e\u975e\u5fc5\u8981\u7684\u89c6\u56fe\u3001HTML \u548c JS\uff0c\u6211\u4eec\u5229\u7528\u52a8\u6001\u5bfc\u5165\u6765\u51cf\u5c11\u7f51\u9875\u7684\u521d\u59cb\u5927\u5c0f\u3002\u6b64\u5904\u7684\u52a8\u6001\u610f\u5473\u7740\u7f51\u7ad9\u6839\u636e\u7279\u5b9a\u6761\u4ef6\u786e\u5b9a\u662f\u5426\u52a0\u8f7d\u8865\u5145\u6587\u4ef6\uff0c\u4ee5\u786e\u4fdd\u5b83\u4e0d\u4f1a\u7834\u574f\u7528\u6237\u4f53\u9a8c\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=\"\u4f7f\u7528 Bundle Analyzer \u8fdb\u884c\u5206\u6790\u540e\u7684\u56fe\u8868\" \/><\/a><br \/>\n<em>\u4ee5\u4e0b\u662f\u6211\u4eec\u4f18\u5316\u7684\u7ed3\u679c\uff1a\u52a0\u8f7d\u8fc7\u7a0b\u66f4\u52a0\u5b8c\u5584\uff0c\u6ca1\u6709\u5b64\u7acb\u7684\u6269\u5c55\u5305<\/em><\/p>\n<p><strong>\u5c06\u5927\u5305\u5206\u5272\u6210\u66f4\u5c0f\u7684\u90e8\u5206\u540e\uff0c\u6211\u4eec\u6709\u6548\u5730\u51cf\u8f7b\u4e86\u9875\u9762\u91cd\u91cf\u5e76\u5220\u9664\u4e86\u6240\u6709\u5927\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.\u901a\u8fc7\u4ee3\u7801\u538b\u7f29\u6765\u538b\u7f29HTML\u548cCSS<\/h3>\n<p>\u4ee3\u7801\u538b\u7f29\u5f7b\u5e95\u6539\u53d8\u4e86\u6211\u4eec\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u538b\u7f29\u4ee3\u7801\u5e76\u7701\u7565\u4e0d\u5fc5\u8981\u7684\u7a7a\u683c\uff0c\u6211\u4eec\u5b9e\u73b0\u4e86\u6587\u4ef6\u5927\u5c0f\u7684\u51cf\u5c0f\u3001\u5feb\u901f\u4e0b\u8f7d\u548c\u5e26\u5bbd\u4f7f\u7528\u91cf\u7684\u6700\u5c0f\u5316\u3002\u76ee\u524d\uff0c\u6211\u4eec\u7684\u670d\u52a1\u5668\u4ee5 gzip \u683c\u5f0f\u5206\u53d1\u7f51\u7ad9\u6587\u4ef6\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u901f\u5ea6\uff0c\u5e76\u663e\u8457\u63d0\u5347\u4e86 FCP \u548c FID\uff08\u9996\u6b21\u8f93\u5165\u5ef6\u8fdf\uff0c\u8861\u91cf\u9996\u6b21\u70b9\u51fb\u548c\u6d4f\u89c8\u5668\u54cd\u5e94\u4e4b\u95f4\u5ef6\u8fdf\u7684\u6307\u6807\uff09\u7b49\u5173\u952e\u6307\u6807\uff0c\u4ece\u6b21\u4f18\u6027\u80fd\u6c34\u5e73\u63d0\u5347\u5230\u4e2d\u7b49\u6027\u80fd\u6c34\u5e73\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\u4ee3\u7801\u8d28\u91cf\u5e76\u89e3\u51b3\u5185\u5b58\u6cc4\u6f0f<\/h3>\n<p>\u7ecf\u8fc7\u4ed4\u7ec6\u68c0\u67e5\uff0c\u6211\u4eec\u53d1\u73b0\u4ee3\u7801\u5e93\u4e2d\u5b58\u5728\u4e00\u4e9b\u72e1\u733e\u7684\u5185\u5b58\u6cc4\u6f0f\u3002\u95ee\u9898\u6e90\u4e8e\u5bf9\u8c61\u5728\u4e0d\u518d\u9700\u8981\u540e\u4ecd\u505c\u7559\u5728\u5185\u5b58\u4e2d\uff0c\u5bfc\u81f4\u73af\u5883\u62e5\u6324\u3002<\/p>\n<p>\u4e3a\u4e86\u7ea0\u6b63\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u5b9e\u65bd\u4e86\u4e24\u79cd\u65b9\u6cd5\u3002\u5728\u4e8b\u4ef6\u4fa6\u542c\u5668\u4ec5\u9700\u8981\u4e00\u6b21\u7684\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u9009\u62e9\u4e86 {only: true} \u53c2\u6570\u3002\u6b64\u53c2\u6570\u4fdd\u8bc1\u5728\u89e6\u53d1\u4fa6\u542c\u5668\u540e\u81ea\u52a8\u5c06\u5176\u5220\u9664\uff0c\u4ece\u800c\u51cf\u8f7b\u4efb\u4f55\u4e0e\u5185\u5b58\u76f8\u5173\u7684\u590d\u6742\u6027\u3002\u6b64\u5916\uff0c\u6211\u4eec\u786e\u4fdd\u901a\u8fc7\u4f7f\u7528 removeEventListener() \u65b9\u6cd5\u660e\u786e\u6d88\u9664\u4e8b\u4ef6\u4fa6\u542c\u5668\u3002\u6b64\u6b65\u9aa4\u662f\u5728\u5220\u9664\u5143\u7d20\u4e4b\u524d\u6216\u4fa6\u542c\u5668\u8fc7\u65f6\u540e\u6267\u884c\u7684\u3002\u6b64\u7c7b\u64cd\u4f5c\u4fc3\u8fdb\u4e86\u5143\u7d20\u548c\u51fd\u6570\u4e4b\u95f4\u7684\u65e0\u7f1d\u65ad\u5f00\uff0c\u4ece\u800c\u907f\u514d\u4e86\u5185\u5b58\u6cc4\u6f0f\u3002<\/p>\n<p>\u5173\u4e8e addEventListener \u7684\u53e6\u4e00\u4e2a\u9700\u8981\u8003\u8651\u7684\u65b9\u9762\u662f\u5408\u5e76 {passive: true} \u53c2\u6570\u3002\u4e8b\u5b9e\u8bc1\u660e\uff0c\u8fd9\u79cd\u8c03\u6574\u6709\u5229\u4e8e\u6eda\u52a8\u4ea4\u4e92\uff0c\u9632\u6b62\u754c\u9762\u4e2d\u65ad\u5e76\u6709\u52a9\u4e8e\u589e\u5f3a\u7528\u6237\u4f53\u9a8c\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;scroll&#039;; window.removeEventListener(&#039;scroll&#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>\u4ece\u4e4b\u524d\u5230\u4e4b\u540e\uff1a\u6027\u80fd\u589e\u5f3a\u5bf9\u6211\u4eec\u7f51\u7ad9\u7684\u5f71\u54cd<\/h3>\n<p>\u5766\u767d\u8bf4\uff0c\u6211\u4eec\u6700\u521d\u7684\u5904\u5883\u5e76\u4e0d\u7406\u60f3\u2014\u2014\u52a0\u8f7d\u65f6\u95f4\u7f13\u6162\uff0c\u670d\u52a1\u5668\u4e0d\u582a\u91cd\u8d1f\uff0c\u4e25\u91cd\u5f71\u54cd\u4e86\u7528\u6237\u4f53\u9a8c\u3002\u7136\u800c\uff0c\u51ed\u501f\u5b9d\u8d35\u7684\u89c1\u89e3\u548c\u4f18\u5316\u7b56\u7565\uff0c\u6211\u4eec\u5168\u8eab\u5fc3\u6295\u5165\u5230\u8fd9\u9879\u4efb\u52a1\u4e2d\uff0c\u5e76\u53d6\u5f97\u4e86\u4ee4\u4eba\u5370\u8c61\u6df1\u523b\u7684\u6210\u679c\u3002\u6211\u4eec\u5bf9\u7ed3\u679c\u6ee1\u610f\u5417\uff1f\u6beb\u65e0\u7591\u95ee\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\u6807\u7684\u5c4f\u5e55\u622a\u56fe\" \/><\/a><br \/>\n<em><a href=\"https:\/\/pagespeed.web.dev\/\">PageSpeed Insight<\/a> \u5411\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4efd\u503c\u5f97\u79f0\u8d5e\u7684\u6210\u7ee9\u5355\uff0c\u5f3a\u8c03\u4e86\u5b9e\u8d28\u6027\u7684\u6539\u8fdb<\/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=\"\u6838\u5fc3\u7f51\u7edc\u751f\u547d\u529b\u6307\u6807\u7684\u5c4f\u5e55\u622a\u56fe\" \/><\/a><br \/>\n<em>\u4e3a\u671f\u4e00\u4e2a\u6708\u7684\u7ee9\u6548\u8bc4\u4f30\u663e\u793a\u51fa\u663e\u8457\u7684\u8fdb\u6b65\u2014\u2014\u4e0e\u6211\u4eec\u7684\u8d77\u70b9\u76f8\u6bd4\uff0c\u6240\u6709\u6307\u6807\u90fd\u663e\u793a\u51fa\u591a\u9879\u6539\u8fdb<\/em><\/p>\n<p>\u5982\u679c\u6ca1\u6709\u65e0\u6570\u5c0f\u65f6\u548c\u6570\u65e5\u7684\u4e13\u6ce8\u52aa\u529b\uff0c\u8fd9\u4e9b\u8f6c\u53d8\u662f\u4e0d\u53ef\u80fd\u5b9e\u73b0\u7684\uff1b\u7136\u800c\uff0c\u53e6\u4e00\u4e2a\u5bf9\u6211\u4eec\u6210\u529f\u505a\u51fa\u91cd\u5927\u8d21\u732e\u7684\u56e0\u7d20\u662f\u4f7f\u7528\u9002\u5f53\u7684\u5de5\u5177\u3002\u67d0\u4e9b\u5de5\u5177\u4e0d\u4ec5\u5728\u6211\u4eec\u52aa\u529b\u7684\u8fc7\u7a0b\u4e2d\u8282\u7701\u4e86\u65f6\u95f4\uff0c\u800c\u4e14\u503c\u5f97\u79f0\u8d5e\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\u6027\u80fd\u7684\u5de5\u5177\uff1aPageSpeed Insights \u548c Lighthouse<\/h4>\n<p>\u5728\u6027\u80fd\u8bc4\u4f30\u548c\u589e\u5f3a\u65b9\u9762\uff0c\u4e24\u4e2a Google \u5b9e\u7528\u7a0b\u5e8f\u8131\u9896\u800c\u51fa\uff1a <a href=\"https:\/\/pagespeed.web.dev\/\">PageSpeed \u6d1e\u5bdf<\/a> \u548c <a href=\"https:\/\/developer.chrome.com\/docs\/lighthouse\/overview\">\u706f\u5854<\/a>\u3002\u8fd9\u4e9b\u5de5\u5177\u4f1a\u4ed4\u7ec6\u68c0\u67e5\u7f51\u9875\u7684\u5404\u4e2a\u65b9\u9762\uff0c\u4ee5\u63d0\u4f9b\u6709\u5173\u5176\u901f\u5ea6\u3001\u7528\u6237\u4f53\u9a8c\u548c\u6574\u4f53\u6027\u80fd\u7684\u89c1\u89e3\u3002\u4ee5\u4e0b\u662f\u5b83\u4eec\u5171\u540c\u8bc4\u4f30\u7684\u6307\u6807\uff1a<\/p>\n<ul>\n<li><strong>\u6700\u5927\u7684\u5185\u5bb9\u6d82\u6599 (LCP)<\/strong> \u2013 \u6d4b\u91cf\u53ef\u89c1\u533a\u57df\u4e2d\u6700\u5927\u7684\u5185\u5bb9\u5143\u7d20\uff08\u4f8b\u5982\uff0c\u56fe\u50cf\u6216\u6587\u672c\u5757\uff09\u88ab\u7528\u6237\u770b\u5230\u7684\u6301\u7eed\u65f6\u95f4\u3002<\/li>\n<li><strong>\u9996\u6b21\u5185\u5bb9\u7ed8\u5236 (FCP)<\/strong> \u2013 \u6d4b\u91cf\u6d4f\u89c8\u5668\u5448\u73b0\u521d\u59cb\u5185\u5bb9\u7247\u6bb5\uff08\u4f8b\u5982\u6587\u672c\u6216\u56fe\u50cf\uff09\u7684\u65f6\u95f4\u3002<\/li>\n<li><strong>\u9996\u6b21\u8f93\u5165\u5ef6\u8fdf (FID)<\/strong> \u2013 \u8bc4\u4f30\u7528\u6237\u4e3b\u8981\u4ea4\u4e92\uff08\u4f8b\u5982\uff0c\u6309\u94ae\u5355\u51fb\uff09\u4e0e\u6d4f\u89c8\u5668\u5bf9\u8be5\u64cd\u4f5c\u7684\u54cd\u5e94\u4e4b\u95f4\u7684\u5ef6\u8fdf\u3002<\/li>\n<li><strong>\u7d2f\u79ef\u5e03\u5c40\u504f\u79fb (CLS)<\/strong> \u2013 \u7edf\u8ba1\u9875\u9762\u751f\u547d\u5468\u671f\u5185\u53d1\u751f\u7684\u6240\u6709\u5355\u4e2a\u5e03\u5c40\u504f\u79fb\u5206\u6570\u7684\u603b\u548c\u3002\u5f53\u9875\u9762\u4e0a\u7684\u53ef\u89c1\u5143\u7d20\u610f\u5916\u79fb\u52a8\u65f6\uff0c\u5c31\u4f1a\u53d1\u751f\u5e03\u5c40\u504f\u79fb\u3002<\/li>\n<li><strong>\u4ea4\u4e92\u5230\u4e0b\u4e00\u6b21\u7ed8\u5236 (INP)<\/strong> \u2013 \u901a\u8fc7\u66f4\u65b0\u9875\u9762\u4e0a\u7684\u89c6\u89c9\u5185\u5bb9\u6765\u8ba1\u7b97\u6d4f\u89c8\u5668\u5bf9\u7528\u6237\u4ea4\u4e92\uff08\u4f8b\u5982\u70b9\u51fb\u6216\u8f7b\u89e6\uff09\u505a\u51fa\u53cd\u5e94\u7684\u65f6\u95f4\u3002<\/li>\n<li><strong>\u7b2c\u4e00\u4e2a\u5b57\u8282\u7684\u65f6\u95f4 (TTFB)<\/strong> \u2013 \u786e\u5b9a\u6d4f\u89c8\u5668\u5728\u6536\u5230\u8bf7\u6c42\u540e\u4ece\u670d\u52a1\u5668\u63a5\u6536\u521d\u59cb\u6570\u636e\u5b57\u8282\u7684\u6301\u7eed\u65f6\u95f4\u3002<\/li>\n<li><strong>\u603b\u963b\u585e\u65f6\u95f4 (TBT)<\/strong> \u2013 \u91cf\u5316\u6d4f\u89c8\u5668\u4e3b\u7ebf\u7a0b\u53d7\u963b\u4e14\u65e0\u6cd5\u54cd\u5e94\u7528\u6237\u8f93\u5165\u7684\u603b\u6301\u7eed\u65f6\u95f4\u3002<\/li>\n<li><strong>TTI\uff08\u4ea4\u4e92\u65f6\u95f4\uff09<\/strong> \u2013 \u8bc4\u4f30\u9875\u9762\u5b8c\u5168\u4ea4\u4e92\u7684\u65f6\u95f4\uff0c\u8fd9\u610f\u5473\u7740\u6240\u6709\u5fc5\u8981\u7684\u8d44\u6e90\u90fd\u5df2\u52a0\u8f7d\uff0c\u5e76\u4e14\u9875\u9762\u53ca\u65f6\u54cd\u5e94\u7528\u6237\u8f93\u5165\u3002<\/li>\n<li><strong>FID\uff08\u9996\u6b21\u8f93\u5165\u5ef6\u8fdf\uff09<\/strong> \u2013 \u4ed4\u7ec6\u68c0\u67e5\u7528\u6237\u521d\u59cb\u4ea4\u4e92\u4e0e\u6d4f\u89c8\u5668\u5bf9\u8be5\u4ea4\u4e92\u7684\u53cd\u5e94\u4e4b\u95f4\u7684\u5ef6\u8fdf\u3002<\/li>\n<\/ul>\n<p>\u60a8\u53ef\u4ee5\u5229\u7528\u8fd9\u4e24\u79cd\u5de5\u5177\u4e2d\u7684\u4efb\u4f55\u4e00\u79cd\u6765\u6df1\u5165\u4e86\u89e3\u7f51\u7ad9\u7684\u6027\u80fd\u3002Lighthouse \u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\u548c\u8be6\u7ec6\u7684\u89c1\u89e3\uff0c\u800c PageSpeed Insights \u5219\u4e13\u6ce8\u4e8e\u76d1\u63a7\u5355\u4e2a\u9875\u9762\u7684\u6027\u80fd\u3002<\/p>\n<p>\u867d\u7136\u8fd9\u4e24\u4e2a\u5de5\u5177\u88ab\u5e7f\u6cdb\u4f7f\u7528\uff0c\u4f46\u5b83\u4eec\u5e76\u4e0d\u662f\u6211\u4eec\u552f\u4e00\u7684\u5efa\u8bae\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u989d\u5916\u7684\u8d44\u6e90\uff0c\u5b83\u4eec\u53ef\u80fd\u5bf9\u60a8\u7684\u6027\u80fd\u4f18\u5316\u4e4b\u65c5\u5927\u6709\u88e8\u76ca\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\u8865\u5145\u5de5\u5177<\/h4>\n<p><a href=\"https:\/\/gtmetrix.com\/\">GTMetrix<\/a>\uff1a\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u5ba1\u6838\u9875\u9762\uff0c\u8fd8\u53ef\u4ee5\u4ee5\u6613\u4e8e\u7406\u89e3\u7684\u683c\u5f0f\u53ef\u89c6\u5316\u52a0\u8f7d\uff0c\u4f7f\u6027\u80fd\u589e\u5f3a\u53d8\u5f97\u5207\u5b9e\u53ef\u884c\u3002<\/p>\n<p><a href=\"https:\/\/yellowlab.tools\/\">\u9ec4\u8272\u5b9e\u9a8c\u5ba4\u5de5\u5177<\/a>\uff1a\u4e00\u4e2a\u5bcc\u6709\u6d1e\u5bdf\u529b\u7684\u4eea\u8868\u677f\uff0c\u53ef\u5bf9\u4f17\u591a\u6307\u6807\u8fdb\u884c\u5206\u7c7b\u548c\u8bc4\u4f30\u3002\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u8bc6\u522b\u95ee\u9898\uff0c\u8fd8\u53ef\u4ee5\u63d0\u4f9b\u8be6\u7ec6\u7684\u4f18\u5316\u5efa\u8bae\u3002<\/p>\n<p>\u8fd9\u4e9b\u5de5\u5177\u5c31\u50cf\u6211\u4eec\u7684\u6307\u8def\u660e\u706f\uff0c\u5e2e\u52a9\u6211\u4eec\u63d0\u5347\u6027\u80fd\uff0c\u63d0\u4f9b\u5353\u8d8a\u7684\u7528\u6237\u4f53\u9a8c\u3002\u5728\u7740\u624b\u63d0\u5347\u7f51\u7ad9\u6027\u80fd\u65f6\uff0c\u8bf7\u7262\u8bb0\u8fd9\u4e9b\u5de5\u5177\u3002<\/p>\n<h4><a id=\"bottom-line\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u7ed3\u8bba<\/h4>\n<p>\u5982\u679c\u60a8\u7684\u4e1a\u52a1\u4f9d\u8d56\u4e8e\u7f51\u7ad9\uff0c\u90a3\u4e48\u5ffd\u89c6\u5176\u6027\u80fd\u7edd\u5bf9\u4e0d\u662f\u4e00\u79cd\u9009\u62e9\u3002\u8fd9\u65b9\u9762\u53ef\u4ee5\u63a8\u52a8\u60a8\u6210\u4e3a Google \u641c\u7d22\u7ed3\u679c\u4e2d\u7684\u4f7c\u4f7c\u8005\uff0c\u6216\u8005\u53cd\u8fc7\u6765\uff0c\u4fc3\u4f7f\u7528\u6237\u8fc1\u79fb\u5230\u901f\u5ea6\u66f4\u5feb\u3001\u4f53\u9a8c\u66f4\u4f73\u7684\u7f51\u7ad9\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u56f0\u5883\uff0c\u6211\u4eec\u5206\u4eab\u4e86\u6211\u4eec\u7f51\u7ad9\u8715\u53d8\u7684\u6545\u4e8b\u3002<\/p>\n<p>\u6211\u4eec\u8ffd\u6c42\u6700\u4f73\u6027\u80fd\u7684\u65c5\u7a0b\u4ecd\u5728\u7ee7\u7eed\uff0c\u56e0\u4e3a\u603b\u6709\u6539\u8fdb\u7684\u7a7a\u95f4\u3002\u6700\u8fd1\uff0c\u6211\u4eec\u53d1\u73b0 GatsbyJS \u5b58\u5728\u4e00\u4e9b\u6311\u6218\uff0c\u5e76\u6b63\u5728\u8003\u8651\u8fc7\u6e21\u5230 NextJS\u3002\u7136\u800c\uff0c\u8fd9\u4e00\u8003\u8651\u503c\u5f97\u5728\u53e6\u4e00\u7bc7\u6587\u7ae0\u4e2d\u8ba8\u8bba\u3002<\/p>\n<p>\u6b63\u5982\u6ca1\u6709\u4e24\u5bb6\u4f01\u4e1a\u662f\u76f8\u540c\u7684\uff0c\u4e5f\u6ca1\u6709\u901a\u7528\u7684\u84dd\u56fe\u6765\u63d0\u9ad8\u7f51\u7ad9\u7684\u6027\u80fd\u3002\u6bcf\u79cd\u60c5\u51b5\u90fd\u662f\u72ec\u4e00\u65e0\u4e8c\u7684\uff0c\u9700\u8981\u91c7\u7528\u91cf\u8eab\u5b9a\u5236\u7684\u65b9\u6cd5\u6765\u5e94\u5bf9\u60a8\u9762\u4e34\u7684\u5177\u4f53\u6311\u6218\u3002\u867d\u7136\u8fd9\u4e0d\u662f\u4e00\u9879\u8f7b\u677e\u7684\u4efb\u52a1\uff0c\u4f46\u6211\u4eec\u968f\u65f6\u51c6\u5907\u63d0\u4f9b\u5e2e\u52a9\u3002\u5982\u679c\u60a8\u60f3\u63d0\u9ad8\u7f51\u7ad9\u7684\u6027\u80fd\uff0c\u8bf7\u968f\u65f6 <a href=\"https:\/\/tenten.co\/contact\">\u8054\u7cfb\u6211\u4eec<\/a>\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u80fd\u4e3a\u60a8\u505a\u4e9b\u4ec0\u4e48\u3002<br \/>\n`<\/p>","protected":false},"excerpt":{"rendered":"\u201c\u65e9\u5728 2018 \u5e74\uff0cGoogle \u5c31\u6307\u51fa\uff0c\u9875\u9762\u901f\u5ea6\u73b0\u5728\u5c06\u5f71\u54cd\u4e24\u8005\u7684\u6392\u540d......","protected":false},"author":1,"featured_media":2426,"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_cn\/seo\/\u63d0\u9ad8\u7f51\u7ad9\u901f\u5ea6\uff0c\u6027\u80fd\u7b49\u7ea7\u4ece-30-\u63d0\u9ad8\u5230-99\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\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_cn\/seo\/\u63d0\u9ad8\u7f51\u7ad9\u901f\u5ea6\uff0c\u6027\u80fd\u7b49\u7ea7\u4ece-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=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 \u5206\" \/>\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\/Git-and-GitHub-A-Beginners-Guide-to-Version-Control-and-Collabor-scaled.jpg\",\"articleSection\":[\"Advanced SEO\",\"SEO\"],\"inLanguage\":\"zh-Hans\"},{\"@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\/Git-and-GitHub-A-Beginners-Guide-to-Version-Control-and-Collabor-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-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@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\/Git-and-GitHub-A-Beginners-Guide-to-Version-Control-and-Collabor-scaled.jpg\",\"contentUrl\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Git-and-GitHub-A-Beginners-Guide-to-Version-Control-and-Collabor-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-Hans\"},{\"@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-Hans\",\"@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_cn\/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_cn\/seo\/\u63d0\u9ad8\u7f51\u7ad9\u901f\u5ea6\uff0c\u6027\u80fd\u7b49\u7ea7\u4ece-30-\u63d0\u9ad8\u5230-99\/","og_locale":"zh_CN","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_cn\/seo\/\u63d0\u9ad8\u7f51\u7ad9\u901f\u5ea6\uff0c\u6027\u80fd\u7b49\u7ea7\u4ece-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","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"16 \u5206"},"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\/Git-and-GitHub-A-Beginners-Guide-to-Version-Control-and-Collabor-scaled.jpg","articleSection":["Advanced SEO","SEO"],"inLanguage":"zh-Hans"},{"@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\/Git-and-GitHub-A-Beginners-Guide-to-Version-Control-and-Collabor-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-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/seo.tenten.co\/en\/seo\/enhancing-website-speed-achieving-a-99-performance-grade-from-30\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@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\/Git-and-GitHub-A-Beginners-Guide-to-Version-Control-and-Collabor-scaled.jpg","contentUrl":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Git-and-GitHub-A-Beginners-Guide-to-Version-Control-and-Collabor-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-Hans"},{"@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-Hans","@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_cn\/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_cn\/wp-json\/wp\/v2\/posts\/4862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/comments?post=4862"}],"version-history":[{"count":4,"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts\/4862\/revisions"}],"predecessor-version":[{"id":4865,"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts\/4862\/revisions\/4865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/media\/2428"}],"wp:attachment":[{"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/media?parent=4862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/categories?post=4862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/tags?post=4862"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh_cn\/wp-json\/wp\/v2\/ppma_author?post=4862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}