{"id":4937,"date":"2024-07-06T13:33:25","date_gmt":"2024-07-06T05:33:25","guid":{"rendered":"https:\/\/seo.tenten.co\/en\/?p=4937"},"modified":"2024-07-06T13:39:15","modified_gmt":"2024-07-06T05:39:15","slug":"google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024","status":"publish","type":"post","link":"https:\/\/seo.tenten.co\/zh\/advanced-seo\/\u8c37\u6b4c\u71c8\u5854-2024-\u5e74\u589e\u5f37\u7528\u6236\u9ad4\u9a57\u548c\u641c\u5c0b\u5f15\u64ce\u53ef\u898b\u6027\u7684\u9053\/","title":{"rendered":"Google Lighthouse\uff1a\u589e\u5f37\u4f7f\u7528\u8005\u9ad4\u9a57\u548c\u641c\u5c0b\u5f15\u64ce\u53ef\u898b\u6027\u7684\u9053\u5fb7\u99ed\u5ba2\u624b\u518a (2024)"},"content":{"rendered":"<p>Google Lighthouse \u662f\u904a\u6232\u5316\u548c\u9f13\u52f5\u958b\u767c\u4eba\u54e1\u589e\u5f37\u7db2\u9801\u6548\u80fd\u6700\u6709\u6548\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u5229\u7528 Lighthouse\uff0c\u6211\u5011\u80fd\u5920\u6839\u64da\u6574\u9ad4\u6709\u6548\u6027\u3001\u53ef\u8a2a\u554f\u6027\u3001SEO \u548c Google \u7684\u9996\u9078\u300c\u6700\u4f73\u5be6\u8e10\u300d\u4f86\u8a55\u4f30\u7db2\u9801 - \u53ea\u9700\u6309\u4e00\u4e0b\u6309\u9215\u5373\u53ef\u3002<\/p>\n<p>\u9019\u4e9b\u6aa2\u67e5\u53ef\u7528\u65bc\u8a55\u4f30\u524d\u7aef\u6846\u67b6\u7684\u9810\u8a2d\u6548\u80fd\u6216\u5c55\u793a\u900f\u904e\u7cbe\u5fc3\u91cd\u7d44\u5be6\u73fe\u7684\u6548\u7387\u6539\u9032\u3002\u5728\u793e\u4ea4\u5a92\u9ad4\u4e0a\u5c55\u793a\u60a8\u7121\u53ef\u6311\u5254\u7684\u71c8\u5854\u8a55\u5206\u7121\u7591\u662f\u4ee4\u4eba\u6b23\u6170\u7684\u3002\u9019\u662f\u4e00\u9805\u503c\u5f97\u5c0a\u656c\u7684\u6210\u5c31\uff0c\u503c\u5f97\u8209\u8fa6\u4e00\u5834\u5145\u6eff\u6d3b\u529b\u7684\u6176\u795d\u6d3b\u52d5\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/iMFkp1S.gif\" alt=\"\u986f\u793a Google \u71c8\u5854 4 x 100 \u8a55\u7d1a\u7684 gif \u52d5\u756b\uff0c\u5468\u570d\u4e94\u5f69\u7d19\u5c51\u7206\u88c2\" \/><\/p>\n<p>Lighthouse \u6fc0\u767c\u4e86\u50cf\u6211\u5011\u9019\u6a23\u7684\u958b\u767c\u4eba\u54e1\u4e4b\u9593\u95dc\u65bc\u6548\u80fd\u7684\u5c0d\u8a71\uff0c\u9019\u4e00\u7c21\u55ae\u4e8b\u5be6\u5c31\u662f\u4e00\u500b\u52dd\u5229\u3002\u7136\u800c\uff0c\u5118\u7ba1\u4e0d\u8003\u616e\u554f\u984c\u7684\u91cd\u8981\u6027\uff0c\u7db2\u8def\u6548\u80fd\u537b\u8907\u96dc\u5f97\u591a\u3002\u5728\u9019\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u5011\u5c07\u63a2\u7d22 Google Lighthouse \u6548\u80fd\u8a55\u4f30\u80cc\u5f8c\u7684\u65b9\u6cd5\uff0c\u4e26\u5229\u7528\u9019\u4e9b\u77e5\u8b58\uff0c\u52aa\u529b\u64cd\u7e31\u9019\u4e9b\u7d50\u679c\u4ee5\u5c0d\u6211\u5011\u6709\u5229\uff0c <strong>\u4e00\u5207\u90fd\u672c\u8457\u4eab\u53d7\u8207\u63a2\u7d22\u7684\u7cbe\u795e<\/strong> \u2013 \u6700\u7d42\uff0cLighthouse \u5145\u7576\u8a3a\u65b7\u6548\u80fd\u554f\u984c\u7684\u53ef\u9760\u4f46\u7c97\u7565\u7684\u6307\u5357\u3002\u8b93\u6211\u5011\u4f86\u73a9\u4e00\u73a9\uff0c\u770b\u770b\u6211\u5011\u80fd\u5728\u591a\u5927\u7a0b\u5ea6\u4e0a\u6bd4 Lighthouse \u66f4\u8070\u660e\uff0c\u5f9e\u800c\u63d0\u4f9b\u8d85\u51fa\u6211\u5011\u5408\u7406\u63a5\u6536\u7bc4\u570d\u7684\u6539\u9032\u5206\u6578\u3002<\/p>\n<p>\u4f46\u5728\u6b64\u4e4b\u524d\uff0c\u8b93\u6211\u5011\u5148\u6df1\u5165\u7814\u7a76\u4e00\u4e0b\u6578\u64da\u3002<\/p>\n<h2><a id=\"field-data-is-essential-field-data-is-essential\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#field-data-is-important\"><\/a>\u73fe\u5834\u6578\u64da\u81f3\u95dc\u91cd\u8981<\/h2>\n<p>\u672c\u5730\u6548\u80fd\u8a55\u4f30\u53ef\u4ee5\u70ba\u60a8\u7db2\u7ad9\u7684\u6548\u80fd\u662f\u5426\u671d\u8457\u6b63\u9762\u7684\u65b9\u5411\u767c\u5c55\u63d0\u4f9b\u6709\u50f9\u503c\u7684\u898b\u89e3\uff0c\u4f46\u5b83\u5011\u4e26\u4e0d\u80fd\u63d0\u4f9b\u5b8c\u6574\u7684\u73fe\u5be6\u60c5\u6cc1\u3002\u4e92\u806f\u7db2\u662f\u4e00\u500b\u7121\u9650\u591a\u6a23\u6027\u7684\u9818\u57df\uff0c\u7e3d\u7684\u4f86\u8aaa\uff0c\u6211\u5011\u53ef\u80fd\u5df2\u7d93\u5fd8\u8a18\u4e86\u8a2a\u554f\u7db2\u7ad9\u7684\u500b\u4eba\u4f7f\u7528\u7684\u7121\u6578\u8a2d\u5099\u3001\u4e92\u806f\u7db2\u901f\u5ea6\u3001\u5c4f\u5e55\u5c3a\u5bf8\u3001\u700f\u89bd\u5668\u548c\u700f\u89bd\u5668\u7248\u672c\u2014\u2014\u6240\u6709\u9019\u4e9b\u90fd\u6703\u5f71\u97ff\u9801\u9762\u6027\u80fd\u548c\u7528\u6236\u4ea4\u4e92\u3002<\/p>\n<p>\u8207\u4f7f\u7528\u9ad8\u7cbe\u5ea6\u5f9e\u55ae\u4e00\u6a23\u672c\u7372\u5f97\u7684\u5be6\u9a57\u5ba4\u6578\u64da\u76f8\u6bd4\uff0cSentry \u7b49\u61c9\u7528\u7a0b\u5f0f\u6548\u80fd\u76e3\u63a7\u5de5\u5177\u5f9e\u5728\u5176\u8a2d\u5099\u4e0a\u5b58\u53d6\u60a8\u7684\u7db2\u7ad9\u7684\u771f\u5be6\u7528\u6236\u6536\u96c6\u5927\u91cf\u7684\u73fe\u5834\u6578\u64da\uff0c\u53ef\u4ee5\u66f4\u6e96\u78ba\u5730\u8a55\u4f30\u60a8\u7684\u7db2\u7ad9\u6548\u80fd\u3002 Philip Walton \u5728 2021 \u5e74\u900f\u9732\u7684 HTTP Archive \u6578\u64da\u5f37\u8abf\uff0c\u201c\u5728 Lighthouse \u4e0a\u7372\u5f97 100 \u5206\u7684\u6240\u6709\u9801\u9762\u4e2d\uff0c\u8fd1\u4e00\u534a\u672a\u9054\u5230\u5efa\u8b70\u7684 Core Web Vitals \u95be\u503c\u3002\u201d<\/p>\n<p>Web \u6548\u80fd\u8d85\u51fa\u4e86\u55ae\u7368\u7684\u6838\u5fc3 Web \u91cd\u8981\u6307\u6a19\u6216 Lighthouse \u6548\u80fd\u8a55\u7d1a\u3002\u6211\u5011\u7684\u8a0e\u8ad6\u8d85\u8d8a\u4e86\u6211\u5011\u6b63\u5728\u4f7f\u7528\u7684\u57fa\u672c\u8cc7\u6599\u985e\u578b\u3002<\/p>\n<h2><a id=\"web-performance-encompasses-more-than-figures-web-performance-encompasses-more-than-figures\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#web-performance-is-more-than-numbers\"><\/a>Web \u6548\u80fd\u4e0d\u50c5\u50c5\u5305\u542b\u7d71\u8a08\u6578\u64da<\/h2>\n<p><em>\u901f\u5ea6<\/em> \u901a\u5e38\u6210\u70ba\u7db2\u8def\u6548\u80fd\u8a0e\u8ad6\u7684\u4e3b\u8981\u7126\u9ede\u2014\u9801\u9762\u8f09\u5165\u7684\u901f\u5ea6\u3002\u96d6\u7136\u9019\u662f\u4e00\u500b\u9700\u8981\u8003\u616e\u7684\u91cd\u8981\u56e0\u7d20\uff0c\u4f46\u6211\u5011\u5fc5\u9808\u627f\u8a8d\u901f\u5ea6\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u53d7\u5230\u696d\u52d9\u76ee\u6a19\u548c\u92b7\u552e\u76ee\u6a19\u7684\u5f71\u97ff\u3002 Google \u5728 2018 \u5e74\u767c\u5e03\u7684\u4e00\u4efd\u5831\u544a\u8868\u660e\uff0c\u4e00\u65e6\u9801\u9762\u52a0\u8f09\u6642\u9593\u8d85\u904e 3 \u79d2\uff0c\u8df3\u51fa\u7387\u5c31\u6703\u4e0a\u5347 32%\uff0c\u800c\u7576\u52a0\u8f09\u6642\u9593\u8d85\u904e 10 \u79d2\u6642\uff0c\u8df3\u51fa\u7387\u5c31\u6703\u98c6\u5347\u81f3 123%\u3002\u56e0\u6b64\uff0c\u6709\u5fc5\u8981\u52a0\u901f\u9801\u9762\u52a0\u8f09\u4ee5\u63d0\u9ad8\u92b7\u552e\u8f49\u63db\u7387\u3002\u964d\u4f4e\u8df3\u51fa\u7387\u7684\u6838\u5fc3\u76ee\u7684\u662f\u52a0\u5feb\u9801\u9762\u901f\u5ea6 <em>\u8f09\u5165\u4e2d<\/em>.<\/p>\n<p>\u4f46\u300c\u8f09\u5165\u901f\u5ea6\u66f4\u5feb\u300d\u5230\u5e95\u610f\u5473\u8457\u4ec0\u9ebc\uff1f\u6709\u4e00\u500b\u95be\u503c\uff0c\u8d85\u904e\u8a72\u95be\u503c\u6211\u5011\u5be6\u969b\u4e0a\u5c31\u7121\u6cd5\u52a0\u5feb\u7db2\u9801\u7684\u8f09\u5165\u901f\u5ea6\u3002\u4eba\u985e\u4ee5\u53ca\u9023\u63a5\u4ed6\u5011\u7684\u4f3a\u670d\u5668\u5206\u6563\u5728\u5168\u7403\u7bc4\u570d\u5167\uff0c\u7576\u4ee3\u4e92\u806f\u7db2\u57fa\u790e\u8a2d\u65bd\u5728\u4efb\u4f55\u7d66\u5b9a\u6642\u9593\u53ea\u80fd\u50b3\u8f38\u6709\u9650\u6578\u91cf\u7684\u6578\u64da\u3002<\/p>\n<p>\u554f\u984c\u7684\u95dc\u9375\u5728\u65bc\u9801\u9762\u8f09\u5165\u4e26\u4e0d\u4ee3\u8868\u4e00\u500b\u55ae\u4e00\u7684\u6642\u523b\u3002\u5728\u4e00\u7bc7\u984c\u70ba\u300c\u4ec0\u9ebc\u662f\u901f\u5ea6\uff1f\u300d\u7684\u6587\u7ae0\u4e2dGoogle \u95e1\u660e\u9801\u9762\u8f09\u5165\u4e8b\u4ef6\u662f\uff1a<\/p>\n<blockquote>\n<p>\u4efb\u4f55\u55ae\u4e00\u6307\u6a19\u90fd\u7121\u6cd5\u5b8c\u5168\u6982\u62ec\u9019\u7a2e\u906d\u9047\u3002\u8f09\u5165\u904e\u7a0b\u4e2d\u7684\u8a31\u591a\u5be6\u4f8b\u53ef\u80fd\u6703\u5f71\u97ff\u4f7f\u7528\u8005\u662f\u5426\u8a8d\u70ba\u5176\u201c\u5feb\u901f\u201d\uff0c\u4e26\u4e14\u50c5\u95dc\u6ce8\u5176\u4e2d\u4e00\u500b\u5be6\u4f8b\uff0c\u60a8\u53ef\u80fd\u6703\u5ffd\u7565\u5728\u5269\u9918\u6642\u9593\u8de8\u5ea6\u5167\u767c\u751f\u7684\u8ca0\u9762\u4e8b\u4ef6\u3002<\/p>\n<\/blockquote>\n<p>\u9019\u88e1\u7684\u95dc\u9375\u8853\u8a9e\u662f <em>\u7d93\u9a57<\/em>\u3002\u771f\u6b63\u7684\u7db2\u8def\u6548\u80fd\u8d85\u8d8a <em>\u6307\u6a19<\/em> \u548c <em>\u901f\u5ea6<\/em>\uff0c\u66f4\u591a\u95dc\u6ce8 <em>\u6211\u5011\u5982\u4f55\u611f\u77e5<\/em> \u4f7f\u7528\u8005\u7684\u9801\u9762\u8f09\u5165\u548c\u9801\u9762\u53ef\u64cd\u4f5c\u6027\u3002\u9019\u6beb\u4e0d\u8cbb\u529b\u5730\u5f15\u5c0e\u6211\u5011\u8a0e\u8ad6 Google Lighthouse \u5982\u4f55\u8a08\u7b97\u6548\u80fd\u8a55\u7d1a\u3002 \uff08\u986f\u7136\uff0c\u9019\u4e26\u4e0d\u50cf\u4eba\u5011\u60f3\u50cf\u7684\u90a3\u6a23\u7d14\u7cb9\u662f\u901f\u5ea6\u3002\uff09<\/p>\n<h2><a id=\"how-is-the-google-lighthouse-performance-score-determined-how-is-the-google-lighthouse-performance-score-calculated\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#how-is-the-google-lighthouse-performance-score-calculated\"><\/a>Google Lighthouse \u6548\u80fd\u5206\u6578\u662f\u5982\u4f55\u6c7a\u5b9a\u7684\uff1f<\/h2>\n<p>Google Lighthouse \u6548\u80fd\u5206\u6578\u7684\u8a08\u7b97\u6d89\u53ca\u5f9e\u6838\u5fc3 Web \u91cd\u8981\u6307\u6a19\uff08\u4f8b\u5982\uff0c\u9996\u6b21\u5167\u5bb9\u7e6a\u88fd (FCP)\u3001\u6700\u5927\u5167\u5bb9\u7e6a\u88fd (LCP)\u3001\u7d2f\u7a4d\u4f48\u5c40\u504f\u79fb (CLS)\uff09\u548c\u5176\u4ed6\u901f\u5ea6\u76f8\u95dc\u6307\u6a19\u5f97\u51fa\u7684\u5206\u6578\u7684\u52a0\u6b0a\u5408\u4f75\uff08\u4f8b\u5982\uff0c\u901f\u5ea6\u6307\u6578\uff08SI\uff09\u548c\u7e3d\u963b\u585e\u6642\u9593\uff08TBT\uff09\uff09 <strong>\u6574\u500b\u9801\u9762\u8f09\u5165\u6642\u9593\u8ef8\u90fd\u5f88\u660e\u986f<\/strong>.<\/p>\n<p>\u4ee5\u4e0b\u662f\u9019\u4e9b\u6307\u6a19\u5728\u7e3d\u5206\u4e2d\u7684\u6b0a\u91cd\u7d30\u5206\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u516c\u5236<\/th>\n<th>\u52a0\u6b0a (%)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u7e3d\u963b\u585e\u6642\u9593 (TBT)<\/td>\n<td>30<\/td>\n<\/tr>\n<tr>\n<td>\u7d2f\u7a4d\u4f48\u5c40\u504f\u79fb (CLS)<\/td>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5927\u5167\u5bb9\u5857\u6599 (LCP)<\/td>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>\u9996\u6b21\u5167\u5bb9\u7e6a\u88fd (FCP)<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>\u901f\u5ea6\u6307\u6578 (SI)<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6bcf\u500b\u6307\u6a19\u7684\u6b0a\u91cd\u5206\u914d\u8b93\u6211\u5011\u6df1\u5165\u4e86\u89e3 Google \u5982\u4f55\u512a\u5148\u8003\u616e\u6709\u52a9\u65bc\u5353\u8d8a\u4f7f\u7528\u8005\u9ad4\u9a57\u7684\u5404\u7a2e\u5143\u7d20\uff1a<\/p>\n<h3><a id=\"1-a-web-page-should-respond-to-user-input-1-a-web-page-should-respond-to-user-input\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#1-a-web-page-should-respond-to-user-input\"><\/a>1. \u7db2\u9801\u61c9\u8a72\u53ca\u6642\u97ff\u61c9\u4f7f\u7528\u8005\u8f38\u5165<\/h3>\n<p>\u4e3b\u8981\u52a0\u6b0a\u6307\u6a19\u662f <strong>\u7e3d\u963b\u585e\u6642\u9593 (TBT)<\/strong>\uff0c\u4e00\u500b\u6aa2\u67e5\u4e4b\u5f8c\u6301\u7e8c\u6642\u9593\u7684\u5100\u8868 <strong>\u9996\u6b21\u5167\u5bb9\u7e6a\u88fd (FCP)<\/strong> \u8b58\u5225\u4e3b\u7dda\u7a0b\u53ef\u80fd\u9577\u6642\u9593\u53d7\u963b\u7684\u60c5\u6cc1\uff0c\u5f9e\u800c\u963b\u7919\u5c0d\u4f7f\u7528\u8005\u547d\u4ee4\u7684\u5feb\u901f\u56de\u61c9\u3002\u53ea\u8981\u4e3b\u57f7\u884c\u7dd2\u4e0a\u767c\u751f JavaScript \u4efb\u52d9\u8d85\u904e 50 \u6beb\u79d2\uff0c\u4e3b\u57f7\u884c\u7dd2\u5c31\u6703\u88ab\u8996\u70ba\u300c\u963b\u585e\u300d\u3002\u6e1b\u5c11 TBT \u53ef\u78ba\u4fdd\u7db2\u7ad9\u5c0d\u6709\u5f62\u7684\u4f7f\u7528\u8005\u64cd\u4f5c\uff08\u4f8b\u5982\u9375\u76e4\u8f38\u5165\u3001\u6ed1\u9f20\u9ede\u64ca\u7b49\uff09\u505a\u51fa\u56de\u61c9\u3002<\/p>\n<h3><a id=\"2-a-web-page-should-render-valuable-content-without-unforeseen-visual-disruptions-2-a-web-page-should-render-valuable-content-with-no-unexpected-visual-shifts\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#2-a-web-page-should-load-useful-content-with-no-unexpected-visual-shifts\"><\/a>2. \u7db2\u9801\u61c9\u8a72\u986f\u793a\u76f8\u95dc\u5167\u5bb9\uff0c\u4e14\u6c92\u6709\u610f\u5916\u7684\u8996\u89ba\u6ce2\u52d5<\/h3>\n<p>\u96a8\u5f8c\u7684\u52a0\u6b0a Lighthouse \u6307\u6a19\u5305\u62ec <strong>\u6700\u5927\u5167\u5bb9\u5857\u6599 (LCP)<\/strong> \u548c <strong>\u7d2f\u7a4d\u4f48\u5c40\u504f\u79fb (CLS)<\/strong>\u3002 LCP \u8868\u793a\u8f09\u5165\u904e\u7a0b\u4e2d\u9801\u9762\u4e3b\u8981\u5167\u5bb9\u5df2\u8f09\u5165\u7684\u6642\u523b <em>\u60f3\u5fc5<\/em> \u5df2\u52a0\u8f09\uff0c\u56e0\u6b64 <em>\u6709\u50f9\u503c\u7684<\/em>.<\/p>\n<p>\u5728\u5047\u5b9a\u4e3b\u8981\u5167\u5bb9\u8f09\u5165\u5b8c\u6210\u5f8c\uff0c\u4fdd\u6301\u8996\u89ba\u4e00\u81f4\u6027\u5c0d\u65bc\u78ba\u4fdd\u7121\u7e2b\u7528\u6236\u53c3\u8207\u548c\u9632\u6b62\u610f\u5916\u8996\u89ba\u4e2d\u65b7\u81f3\u95dc\u91cd\u8981\u3002\u7406\u60f3\u7684 LCP \u6e2c\u91cf\u662f\u4f4e\u65bc 2.5 \u79d2\u7684\u4efb\u4f55\u6301\u7e8c\u6642\u9593\uff08\u8003\u616e\u5230\u6211\u5011\u4e0d\u65b7\u52aa\u529b\u512a\u5316\u6211\u5011\u7684\u7db2\u7ad9\uff0c\u9019\u660e\u986f\u5927\u65bc\u6211\u5011\u7684\u9810\u671f\uff09 <em>\u76e1\u53ef\u80fd\u5feb<\/em>).<\/p>\n<h3><a id=\"3-a-web-page-should-load-something-3-a-web-page-should-load-something\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#3-a-web-page-should-load-something\"><\/a>3. \u5728\u7db2\u9801\u4e0a\u8f09\u5165\u5167\u5bb9<\/h3>\n<p>\u9019 <strong>\u9996\u6b21\u5167\u5bb9\u7e6a\u88fd (FCP)<\/strong> \u6307\u6a19\u8868\u793a\u9801\u9762\u8f09\u5165\u904e\u7a0b\u4e2d\u4f7f\u7528\u8005\u53ef\u4ee5\u8fa8\u5225\u87a2\u5e55\u4e0a\u5167\u5bb9\u7684\u521d\u59cb\u6642\u523b\uff0c\u800c <strong>\u901f\u5ea6\u6307\u6578 (SI)<\/strong> \u8861\u91cf\u8f09\u5165\u904e\u7a0b\u4e2d\u5167\u5bb9\u8996\u89ba\u5448\u73fe\u7684\u901f\u5ea6\uff0c\u76f4\u5230\u9801\u9762\u9054\u5230\u300c\u5b8c\u6210\u300d\u72c0\u614b\u3002<\/p>\n<p>\u60a8\u7684\u9801\u9762\u8a55\u4f30\u662f\u57fa\u65bc\u4f7f\u7528 HTTP Archive \u4e2d\u7684\u6548\u80fd\u7d71\u8a08\u8cc7\u6599\u5c0d\u5be6\u969b\u7db2\u7ad9\u9032\u884c\u7684\u901f\u5ea6\u6e2c\u91cf\u3002\u503c\u5f97\u7a31\u8b9a\u7684 FCP \u6307\u6a19\u4f4e\u65bc 1.8 \u79d2\uff0c\u503c\u5f97\u7a31\u8b9a\u7684 SI \u6307\u6a19\u4f4e\u65bc 3.4 \u79d2\u3002\u9019\u4e9b\u57fa\u6e96\u9ad8\u65bc\u4eba\u5011\u5728\u8003\u616e\u901f\u5ea6\u6642\u7684\u9810\u671f\u3002<\/p>\n<h2><a id=\"usability-is-favored-over-raw-speed-usability-is-favored-over-raw-speed\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#usability-is-favored-over-raw-speed\"><\/a>\u512a\u5148\u8003\u616e\u53ef\u7528\u6027\u800c\u975e\u7d14\u7cb9\u901f\u5ea6<\/h2>\n<p>Google Lighthouse\u5c0d\u6548\u80fd\u7684\u8a55\u4f30\u7121\u7591\u5f37\u8abf\u7684\u662f\u53ef\u7528\u6027\u800c\u4e0d\u662f\u7d14\u7cb9\u7684\u901f\u5ea6\u3002\u60a8\u7684SI \u548cFCP \u53ef\u80fd\u6703\u8868\u73fe\u51fa\u5353\u8d8a\u7684\u901f\u5ea6\uff0c\u4f46\u5982\u679c\u60a8\u7684LCP \u9047\u5230\u6e32\u67d3\u5ef6\u9072\uff0c\u7531\u65bc\u8907\u96dc\u7684\u5716\u50cf\u6216\u5916\u90e8\u5167\u5bb9\u5c0e\u81f4\u8996\u89ba\u8b8a\u5316\u800c\u5c0e\u81f4CLS\uff0c\u90a3\u9ebc\u8207\u9801\u9762\u7a0d\u5fae\u6eef\u5f8c\u7684\u60c5\u6cc1\u76f8\u6bd4\uff0c\u60a8\u7684\u6574\u9ad4\u6027\u80fd\u8a55\u4f30\u5c07\u8f03\u5dee\u986f\u793a FCP\uff0c\u4f46\u907f\u514d\u5f15\u8d77\u4efb\u4f55 CLS\u3002\u5f9e\u672c\u8cea\u4e0a\u8b1b\uff0c\u5982\u679c JavaScript \u900f\u904e\u963b\u585e\u4e3b\u57f7\u884c\u7dd2\u8d85\u904e 50 \u6beb\u79d2\u4f86\u963b\u7919\u9801\u9762\u7684\u56de\u61c9\u80fd\u529b\uff0c\u90a3\u9ebc\u6548\u80fd\u8a55\u4f30\u5c07\u6bd4\u9801\u9762\u7a0d\u5fae\u5ef6\u9072\u986f\u793a FCP \u53d7\u5230\u66f4\u4e0d\u5229\u7684\u5f71\u97ff\u3002<\/p>\n<p>\u70ba\u4e86\u66f4\u597d\u5730\u7406\u89e3\u6bcf\u500b\u6307\u6a19\u7684\u6b0a\u91cd\u5982\u4f55\u5f71\u97ff\u6700\u7d42\u7684\u6548\u80fd\u8a55\u4f30\uff0c\u60a8\u53ef\u4ee5\u5728 Lighthouse \u8a55\u5206\u8a08\u7b97\u5668\u4e0a\u5617\u8a66\u6ed1\u52d5\u63a7\u5236\u3002\u9019\u662f\u4e00\u500b\u7c21\u55ae\u7684\u8868\u683c\uff0c\u8aaa\u660e\u4e86\u504f\u91cd\u65bc\u55ae\u4e00\u6307\u6a19\u6b0a\u91cd\u5c0d\u6574\u9ad4\u6548\u80fd\u8a55\u4f30\u7684\u5f71\u97ff\uff0c\u8b49\u660e\u4e86\u9801\u9762\u53ef\u7528\u6027\u548c\u56de\u61c9\u80fd\u529b\u6bd4\u7d14\u7cb9\u7684\u901f\u5ea6\u512a\u5148\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u63cf\u8ff0<\/th>\n<th>FCP\uff08\u6beb\u79d2\uff09<\/th>\n<th>\u6a21\u64ec\u5e02\u6c11\uff09<\/th>\n<th>LCP\uff08\u6beb\u79d2\uff09<\/th>\n<th>\u5f85\u5b9a\u6642\u9593\uff08\u6beb\u79d2\uff09<\/th>\n<th>CLS<\/th>\n<th>LH \u8868\u73fe\u8a55\u5206<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u87a2\u5e55\u4e0a\u986f\u793a\u5167\u5bb9\u6709\u5ef6\u9072<\/td>\n<td>6000<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>90<\/td>\n<\/tr>\n<tr>\n<td>\u96a8\u8457\u6642\u9593\u7684\u63a8\u79fb\u8f09\u5165\u5167\u5bb9\u51fa\u73fe\u5ef6\u9072<\/td>\n<td>0<\/td>\n<td>5000<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>90<\/td>\n<\/tr>\n<tr>\n<td>\u8f09\u5165\u9801\u9762\u4e3b\u8981\u90e8\u5206\u7684\u5ef6\u9072<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>6000<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>76<\/td>\n<\/tr>\n<tr>\n<td>\u9801\u9762\u8f09\u5165\u671f\u9593\u7684\u8996\u89ba\u8b8a\u5316<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0.82<\/td>\n<td>76<\/td>\n<\/tr>\n<tr>\n<td>\u9801\u9762\u5c0d\u4f7f\u7528\u8005\u8f38\u5165\u7121\u56de\u61c9<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>2000<\/td>\n<td>0<\/td>\n<td>70<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Google Lighthouse \u6574\u9ad4\u6548\u80fd\u5206\u6578\u662f\u900f\u904e\u6839\u64da\u5176\u5728 Lighthouse \u8a55\u5206\u5206\u4f48\u4e2d\u7684\u4f4d\u7f6e\u5c07\u6bcf\u500b\u539f\u59cb\u6307\u6a19\u503c\u8f49\u63db\u70ba 0 \u5230 100 \u7bc4\u570d\u5167\u7684\u5206\u6578\u4f86\u8a08\u7b97\u7684\uff0c\u8a72\u5206\u6578\u6e90\u81ea HTTP Archive \u4e2d\u771f\u5be6\u7db2\u7ad9\u6548\u80fd\u8cc7\u6599\u7684\u6548\u80fd\u6307\u6a19\u3002\u5f9e\u9019\u4e9b\u6578\u5b78\u5bc6\u96c6\u578b\u6578\u64da\u4e2d\u5f97\u51fa\u5169\u500b\u91cd\u8981\u7d50\u8ad6\uff1a<\/p>\n<ol>\n<li>\u60a8\u7684 Lighthouse \u6548\u80fd\u5206\u6578\u662f\u6839\u64da\u771f\u5be6\u7684\u7db2\u7ad9\u6548\u80fd\u6578\u64da\u9032\u884c\u7684\uff0c\u800c\u4e0d\u662f\u5b64\u7acb\u7684\u3002<\/li>\n<li>\u9451\u65bc\u5728\u8a55\u5206\u4e2d\u4f7f\u7528\u5c0d\u6578\u6b63\u614b\u5206\u4f48\uff0c\u5404\u500b\u6307\u6a19\u503c\u8207\u7e3d\u5206\u4e4b\u9593\u7684\u76f8\u95dc\u6027\u662f\u975e\u7dda\u6027\u7684\uff0c\u9019\u8868\u660e\u96d6\u7136\u53ef\u4ee5\u5c0d\u9336\u73fe\u4e0d\u4f73\u7684\u5206\u6578\u9032\u884c\u986f\u8457\u589e\u5f37\uff0c\u4f46\u63d0\u9ad8\u5df2\u7d93\u5f88\u9ad8\u7684\u5206\u6578\u8b8a\u5f97\u66f4\u5177\u6311\u6230\u6027\u3002<\/li>\n<\/ol>\n<p><a href=\"https:\/\/i.imgur.com\/X1EXzMV.png\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/X1EXzMV.png\" alt=\"\u5c0d\u6578\u5e38\u614b\u5206\u4f48\u66f2\u7dda\u7684\u53ef\u8996\u5316\uff0c\u5de6\u5074\u8f03\u9ad8\uff0c\u53f3\u5074\u8f03\u4f4e\u3002\" \/><\/a><\/p>\n<p>\u9032\u4e00\u6b65\u63a2\u7d22\u5982\u4f55\u78ba\u5b9a\u6307\u6a19\u5206\u6578\uff0c\u4e26\u5728developer.chrome.com \u4e0a\u4ee5\u5c0d\u6578\u5e38\u614b\u5206\u4f48\u66f2\u7dda\u7684\u5716\u5f62\u8868\u793a\u5f62\u5f0f\u8868\u793a\u3002<\/p>\n<h2><a id=\"can-we-trick-google-lighthouse-can-we-trick-google-lighthouse\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#can-we-trick-google-lighthouse\"><\/a>\u6709\u53ef\u80fd\u667a\u52ddGoogle\u71c8\u5854\u55ce\uff1f<\/h2>\n<p>\u6211\u5f88\u6b23\u8cde Google \u5728\u8a0e\u8ad6 Web \u6548\u80fd\u6642\u5c0d\u53ef\u7528\u6027\u7684\u5f37\u8abf\uff0c\u800c\u4e0d\u662f\u7d14\u7cb9\u7684\u901f\u5ea6\u3002\u5b83\u9f13\u52f5\u958b\u767c\u4eba\u54e1\u512a\u5148\u8003\u616e\u5275\u9020\u771f\u5be6\u7684\u9ad4\u9a57\uff0c\u800c\u4e0d\u662f\u8ffd\u6c42\u4efb\u610f\u7684\u6307\u6a19\u3002\u5118\u7ba1\u5982\u6b64\uff0c\u6211\u4e00\u76f4\u5728\u601d\u8003\uff0c\u5728 2024 \u5e74\u7684\u4eca\u5929\uff0c\u662f\u5426\u53ef\u4ee5\u6b3a\u9a19 Google Lighthouse\uff0c\u8b93\u5176\u5c07\u8a2d\u8a08\u7cdf\u7cd5\u4e14\u7121\u7528\u7684\u9801\u9762\u8996\u70ba\u512a\u79c0\u9801\u9762\u3002<\/p>\n<p>\u6211\u7a7f\u4e0a\u5be6\u9a57\u5ba4\u5916\u5957\u4e26\u6234\u4e0a\u79d1\u5b78\u8b77\u76ee\u93e1\u958b\u59cb\u8abf\u67e5\u3002\u9032\u884c\u4e86\u6240\u6709\u6e2c\u8a66\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528 Chromium Lighthouse \u63d2\u4ef6\uff0c<\/li>\n<li>\u5728\u4f7f\u7528 Arc \u700f\u89bd\u5668\u7684\u96b1\u8eab\u8996\u7a97\u4e2d\uff0c<\/li>\n<li>\u9078\u64c7\u201c\u5c0e\u822a\u201d\u548c\u201c\u79fb\u52d5\u201d\u914d\u7f6e\uff08\u9664\u975e\u53e6\u6709\u8aaa\u660e\uff09\uff0c<\/li>\n<li>\u7531\u6211\u5728\u5be6\u9a57\u5ba4\u74b0\u5883\u4e2d\u5b8c\u6210\uff08\u5373\u6c92\u6709\u771f\u5be6\u4e16\u754c\u6578\u64da\uff09\u3002<\/li>\n<\/ul>\n<p>\u5118\u7ba1\u6211\u7684\u5be6\u9a57\u7684\u53d7\u63a7\u74b0\u5883\u8207\u672c\u6587\u958b\u982d\u7684\u5efa\u8b70\u76f8\u77db\u76fe\uff0c\u4f46\u8a72\u5be6\u9a57\u88ab\u8b49\u660e\u662f\u4e00\u9805\u6709\u8da3\u7684\u5617\u8a66\u3002\u6211\u5e0c\u671b\u60a8\u4e86\u89e3\u5230 Lighthouse \u5206\u6578\u53ea\u662f\u8907\u96dc\u7684\u7db2\u8def\u6548\u80fd\u96e3\u984c\u4e2d\u7684\u4e00\u500b\u8981\u7d20\uff08\u5118\u7ba1\u662f\u6b21\u8981\u7684\uff09\u3002\u6b64\u5916\uff0c\u7531\u65bc\u7f3a\u4e4f\u771f\u5be6\u4e16\u754c\u7684\u6578\u64da\uff0c\u9019\u4e9b\u767c\u73fe\u7684\u76f8\u95dc\u6027\u53ef\u80fd\u6703\u53d7\u5230\u8cea\u7591\u3002<\/p>\n<h2><a id=\"how-to-hack-fcp-and-lcp-scores-how-to-hack-fcp-and-lcp-scores\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#how-to-hack-fcp-and-lcp-scores\"><\/a>\u64cd\u7e31 FCP \u548c LCP \u5206\u6578\u7684\u7b56\u7565<\/h2>\n<hr \/>\n<p><strong>TL;DR\uff1a\u5728\u52a0\u8f09\u6642\u5c55\u793a\u6700\u4f4e\u9650\u5ea6\u7684 LCP \u5408\u683c\u5167\u5bb9\uff0c\u4ee5\u63d0\u9ad8 FCP \u548c LCP \u5206\u6578\uff0c\u76f4\u5230 Lighthouse \u8a55\u4f30\u5b8c\u6210\u3002<\/strong><\/p>\n<hr \/>\n<p>FCP \u8868\u793a\u9801\u9762\u8f09\u5165\u904e\u7a0b\u4e2d\u7684\u521d\u59cb\u968e\u6bb5\uff0c\u5176\u4e2d\u4f7f\u7528\u8005\u53ef\u4ee5\u611f\u77e5\u87a2\u5e55\u4e0a\u7684\u4efb\u4f55\u5167\u5bb9\uff0c\u800c LCP \u8868\u793a\u8f09\u5165\u6642\u9593\u8ef8\u4e2d\u4e3b\u9801\u9762\u5167\u5bb9\uff08\u4f8b\u5982\uff0c\u6700\u5927\u7684\u6587\u5b57\u6216\u5716\u50cf\u5143\u7d20\uff09\u53ef\u80fd\u5df2\u8f09\u5165\u7684\u6642\u9593\u9ede\u3002\u5feb\u901f\u7684 LCP \u6709\u52a9\u65bc\u589e\u5f37\u4f7f\u7528\u8005\u5c0d\u9801\u9762\u7684\u4fe1\u5fc3 <em>\u597d\u8655<\/em>\u3002 \u300c\u53ef\u80fd\u300d\u548c\u300c\u6709\u76ca\u300d\u662f\u9019\u88e1\u8981\u8a18\u4f4f\u7684\u95dc\u9375\u8853\u8a9e\u3002<\/p>\n<h3><a id=\"what-counts-as-an-lcp-element-what-counts-as-an-lcp-element\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#what-counts-as-an-lcp-element\"><\/a>\u8b58\u5225 LCP \u5143\u7d20<\/h3>\n<p>Lighthouse for LCP \u8003\u616e\u7684\u7db2\u9801\u4e0a\u7684\u5143\u7d20\u985e\u5225\u6709\uff1a<\/p>\n<ul>\n<li><code>&lt;img&gt;<\/code> \u6a19\u7c64<\/li>\n<li><code>&lt;image&gt;<\/code> \u5167\u7684\u6a19\u7c64 <code>&lt;svg&gt;<\/code> \u6a19\u7c64<\/li>\n<li><code><video><\/code> \u6a19\u7c64<\/li>\n<li>\u5177\u6709\u900f\u904e\u8f09\u5165\u7684\u80cc\u666f\u5716\u50cf\u7684\u5143\u7d20 <code>\u7db2\u5740\uff08\uff09<\/code> \u51fd\u6578\uff08\u4e0d\u5305\u62ec CSS \u6f38\u5c64\uff09<\/li>\n<li>\u5305\u542b\u6587\u5b57\u7bc0\u9ede\u6216\u884c\u5167\u6587\u5b57\u5143\u7d20\u7684\u5340\u584a\u7d1a\u5143\u7d20<\/li>\n<\/ul>\n<p>\u96a8\u5f8c\u7684\u5143\u7d20\u662f <em>\u7701\u7565<\/em> \u7531\u65bc\u5047\u5b9a\u5b83\u5011\u7f3a\u4e4f\u6709\u7528\u5167\u5bb9\uff0c\u56e0\u6b64\u4e0d\u8003\u616e LCP\uff1a<\/p>\n<ul>\n<li>\u96f6\u900f\u660e\u5ea6\u7684\u5143\u7d20\uff08\u4f7f\u7528\u8005\u4e0d\u53ef\u898b\uff09\uff0c<\/li>\n<li>\u906e\u84cb\u6574\u500b\u8996\u7a97\u7684\u5143\u7d20\uff08\u53ef\u80fd\u662f\u80cc\u666f\u5143\u7d20\uff09\uff0c\u4ee5\u53ca<\/li>\n<li>\u4f54\u4f4d\u7b26\u5f71\u50cf\u6216\u5177\u6709\u908a\u7de3\u71b5\u7684\u4f4e\u8cc7\u8a0a\u5167\u5bb9\u5f71\u50cf\uff08\u4f8b\u5982\uff0c\u7d14\u8272\u5f71\u50cf\uff09\u3002<\/li>\n<\/ul>\n<p>\u7136\u800c\uff0c\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u5224\u65b7\u5716\u50cf\u6216\u6587\u5b57\u5143\u7d20\u662f\u5426\u6709\u76ca\u7684\u6982\u5ff5\u662f\u975e\u5e38\u4e3b\u89c0\u7684\uff0c\u4e26\u4e14\u901a\u5e38\u8d85\u51fa\u4e86\u6a5f\u5668\u6f14\u7b97\u6cd5\u53ef\u4ee5\u53ef\u9760\u78ba\u5b9a\u7684\u7bc4\u570d\u3002\u4f8b\u5982\uff0c\u6211\u5efa\u7acb\u7684\u9801\u9762\u50c5\u5305\u542b <code>&lt;h1&gt;<\/code> \u6a19\u7c64\uff0c\u4e00\u65e6\u904e\u4e86 10 \u79d2\uff0cJavaScript \u5c31\u6703\u5c07\u66f4\u591a\u63cf\u8ff0\u6027\u5167\u5bb9\u63d2\u5165 DOM \u4e2d\uff0c\u7136\u5f8c\u96b1\u85cf <code>&lt;h1&gt;<\/code> \u6a19\u7c64\u3002<\/p>\n<p>\u6839\u64da\u5be6\u9a57\uff0cLighthouse \u5c07\u6a19\u984c\u6a19\u7c64\u8996\u70ba\u6700\u5927\u7684\u5167\u5bb9\u7e6a\u88fd (LCP) \u7d44\u4ef6\u3002\u5230\u9054\u6b64\u968e\u6bb5\u5f8c\uff0c\u9801\u9762\u7684\u8f09\u5165\u6642\u9593\u8ef8\u5b8c\u6210\uff0c\u4f46\u4e3b\u8981\u5167\u5bb9\u5c1a\u672a\u5b8c\u5168\u8f09\u5165\u3002\u5118\u7ba1\u5982\u6b64\uff0cLighthouse \u4ecd\u5047\u8a2d\u5167\u5bb9\u5f88\u6709\u53ef\u80fd\u5728 10 \u79d2\u8996\u7a97\u5167\u8f09\u5165\u3002\u4ee4\u4eba\u9a5a\u8a1d\u7684\u662f\uff0c\u5373\u4f7f\u6a19\u984c\u88ab\u63db\u6210\u4e86\u53e5\u9ede\u9019\u6a23\u7684\u7c21\u55ae\u6a19\u9ede\u7b26\u865f\uff0cLighthouse \u4ecd\u7136\u7d66\u51fa\u4e86 100 \u5206\u7684\u6eff\u5206\uff0c\u9019\u66f4\u4e0d\u503c\u9322\u4e86\u3002<\/p>\n<p>\u8a72\u8a66\u9a57\u8868\u660e\uff0c\u7576\u900f\u904e\u5ba2\u6236\u7aef JavaScript \u8f09\u5165\u9801\u9762\u5167\u5bb9\u6642\uff0c\u6700\u597d\u4e0d\u8981\u986f\u793a\u9aa8\u67b6\u8f09\u5165\u5668\u756b\u9762\u3002\u9019\u662f\u56e0\u70ba\u986f\u793a\u9019\u6a23\u7684\u756b\u9762\u9700\u8981\u5728\u9801\u9762\u4e0a\u8f09\u5165\u5176\u4ed6\u5143\u7d20\u3002\u900f\u904e\u8a8d\u8b58\u5230\u6b64\u904e\u7a0b\u9700\u8981\u4e00\u4e9b\u6642\u9593\uff0c\u4e26\u900f\u904e\u5c07\u7db2\u8def\u8acb\u6c42\u5f9e\u4e3b\u57f7\u884c\u7dd2\u50b3\u8f38\u5230Web Worker \u4ee5\u907f\u514d\u5f71\u97ff\u7e3d\u963b\u585e\u6642\u9593\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528\u5305\u542b\u6700\u5c0f\u53ef\u884cLCP \u5143\u4ef6\u7684\u901a\u7528\u201c\u555f\u52d5\u756b\u9762\u201d\uff0c\u4ee5\u5be6\u73fe\u66f4\u597d\u7684\u7b2c\u4e00\u6548\u679c\u5167\u5bb9\u8c50\u5bcc\u7684\u7e6a\u756b\uff08FCP\uff09\u8a55\u5206\u3002\u9019\u7a2e\u65b9\u6cd5\u7d66 Lighthouse \u7684\u5370\u50cf\u662f\u8a72\u9801\u9762\u7684\u4f7f\u7528\u8005\u53cb\u5584\u6027\u6bd4\u5be6\u969b\u4e0a\u8981\u5feb\u5f97\u591a\u3002<\/p>\n<p>\u6240\u9700\u8981\u7684\u53ea\u662f\u5305\u542b\u4ee3\u8868 FCP \u7684\u5408\u6cd5 LCP \u7d44\u4ef6\u3002\u96d6\u7136\u6211\u4e0d\u5efa\u8b70\u5728 2024 \u5e74\u900f\u904e\u5ba2\u6236\u7aef JavaScript \u8f09\u5165\u4e3b\u9801\u5167\u5bb9\uff08\u50be\u5411\u65bc\u5f9e\u5167\u5bb9\u4ea4\u4ed8\u7db2\u8def\u63d0\u4f9b\u975c\u614b HTML \u6216\u5728\u4f3a\u670d\u5668\u4e0a\u5efa\u7acb\u76e1\u53ef\u80fd\u591a\u7684\u5167\u5bb9\uff09\uff0c\u4f46\u4e5f\u4e0d\u5efa\u8b70\u5c0d\u7121\u8ad6Lighthouse \u6548\u80fd\u5f97\u5206\u5982\u4f55\uff0c\u90fd\u53ef\u4ee5\u7372\u5f97\u7a4d\u6975\u7684\u7528\u6236\u9ad4\u9a57\u3002\u6b64\u5916\uff0c\u6b64\u65b9\u6cd5\u53ef\u80fd\u4e0d\u5229\u65bc\u641c\u5c0b\u5f15\u64ce\u7d22\u5f15\uff0c\u56e0\u70ba\u7576 DOM \u4e2d\u4e0d\u5b58\u5728\u4e3b\u8981\u5167\u5bb9\u6642\uff0c\u641c\u5c0b\u6a5f\u5668\u4eba\u7121\u6cd5\u627e\u5230\u4e3b\u8981\u5167\u5bb9\u3002<\/p>\n<p>\u6211\u7528\u5404\u7a2e\u96a8\u6a5f\u5716\u50cf\u5192\u5145 LCP \u9032\u884c\u4e86\u985e\u4f3c\u7684\u8a66\u9a57\uff0c\u4ee5\u9032\u4e00\u6b65\u524a\u5f31\u8a72\u9801\u9762\u7684\u5be6\u7528\u6027\u3002\u7136\u800c\uff0c\u8003\u616e\u5230\u4f7f\u7528\u8f03\u5c0f\u7684\u6a94\u6848\u5927\u5c0f- \u900f\u904e\u7b2c\u4e09\u65b9\u5716\u50cfAPI \u9032\u4e00\u6b65\u6e1b\u5c0f\u4e26\u8f49\u63db\u70ba\u201c\u4e0b\u4e00\u4ee3\u201d\u5716\u50cf\u683c\u5f0f\u4ee5\u63d0\u9ad8\u9801\u9762\u52a0\u8f09\u901f\u5ea6- Lighthouse \u5c07\u9019\u4e9b\u5716\u50cf\u8996\u70ba\u201c\u4f54\u4f4d\u7b26\u5716\u50cf\u201d\u6216\u201c\u4f4e\u201d\u5716\u50cf\u71b5\u300d\u3002\u56e0\u6b64\uff0c\u9019\u4e9b\u5716\u50cf\u6c92\u6709\u88ab\u8b58\u5225\u70ba LCP \u7d44\u4ef6\uff0c\u9019\u662f\u4e00\u500b\u7406\u60f3\u7684\u7d50\u679c\uff0c\u4f7f LCP \u4e0d\u6613\u53d7\u5230\u64cd\u7e31\u3002<\/p>\n<p>\u5728\u96b1\u8eab\u6a21\u5f0f\u4e0b\u67e5\u770b\u4f7f\u7528 Chromium DevTools \u7684\u793a\u7bc4\u9801\u9762\uff0c\u89aa\u773c\u898b\u8b49\u7d50\u679c\u3002<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/KeEjeLx.png\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/KeEjeLx.png\" alt=\"\u5728\u700f\u89bd\u5668\u4e2d\u8b49\u660e\u7121\u7528\u9801\u9762\u5728 Lighthouse \u6548\u80fd\u4e0a\u7372\u5f97\u6eff\u5206 100 \u5206\" \/><\/a><\/p>\n<p>\u7136\u800c\uff0c\u9019\u7a2e\u7b56\u7565\u5728\u8a31\u591a\u5176\u4ed6\u5834\u666f\u4e2d\u53ef\u80fd\u4e0d\u90a3\u9ebc\u6709\u6548\u3002\u4f8b\u5982\uff0cDiscord \u5728\u700f\u89bd\u5668\u4e2d\u5c0d\u5176\u61c9\u7528\u7a0b\u5f0f\u9032\u884c\u786c\u5237\u65b0\u6642\u63a1\u7528\u4e86\u300c\u9583\u5c4f\u300d\u65b9\u6cd5\uff0c\u5c0e\u81f4\u6548\u80fd\u5206\u6578\u4ee4\u4eba\u5931\u671b\uff0c\u70ba 29 \u5206\u3002<\/p>\n<p>\u8207\u6211\u7684 DOM \u6ce8\u5165\u6f14\u793a\u76f8\u53cd\uff0cLCP \u7d44\u4ef6\u88ab\u8b58\u5225\u70ba\u96b1\u85cf\u5728\u555f\u52d5\u5c4f\u5e55\u5f8c\u9762\u7684\u4e00\u4e9b\u5167\u5bb9\uff0c\u800c\u4e0d\u662f\u555f\u52d5\u5c4f\u5e55\u672c\u8eab\u5167\u7684\u5143\u7d20\uff0c\u9019\u53ef\u80fd\u662f\u7531\u65bc\u6211\u6e2c\u8a66\u7684\u805a\u7126\u6587\u672c\u901a\u9053\u4e2d\u5b58\u5728\u4e00\u500b\u6216\u591a\u500b\u5927\u5716\u50cf\u3002\u6709\u4eba\u53ef\u80fd\u6703\u8aaa\uff0cLighthouse \u5206\u6578\u5c0d\u65bc\u50c5\u5728\u8eab\u4efd\u9a57\u8b49\u5f8c\u624d\u80fd\u8a2a\u554f\u7684\u61c9\u7528\u7a0b\u5f0f\u4f86\u8aaa\u610f\u7fa9\u4e0d\u5927\uff0c\u56e0\u70ba\u5b83\u5011\u4e0d\u9700\u8981\u7531\u641c\u5c0b\u5f15\u64ce\u7de8\u5236\u7d22\u5f15\u3002<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/nHT0vqe.png\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/nHT0vqe.png\" alt=\"Lighthouse \u87a2\u5e55\u622a\u5716\uff0c\u5f97\u5206\u70ba 29\uff0c\u65c1\u908a\u662f\u6a21\u7cca\u7684 Discord \u4f3a\u670d\u5668\u983b\u9053\u3002\" \/><\/a><\/p>\n<p>\u5728\u61c9\u7528\u7a0b\u5f0f\u63d0\u4f9b\u4f7f\u7528\u8005\u751f\u6210\u5167\u5bb9\u7684\u8a31\u591a\u5176\u4ed6\u60c5\u6cc1\u4e0b\uff0c\u5b8c\u5168\u63a7\u5236 LCP \u5143\u4ef6\u53ef\u80fd\u5177\u6709\u6311\u6230\u6027\uff0c\u5c24\u5176\u662f\u5728\u5716\u50cf\u65b9\u9762\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u78ba\u5be6\u53ef\u4ee5\u63a7\u5236\u7db2\u9801\u4e0a\u6240\u6709\u5716\u50cf\u7684\u5927\u5c0f\uff0c\u5247\u53ef\u4ee5\u5229\u7528\u6709\u8da3\u7684\u99ed\u5ba2\u6216\u300c\u6700\u4f73\u5316\u300d\uff08\u5e36\u5f15\u865f\uff09\u4f86\u6f5b\u5728\u5730\u64cd\u7e31\u7cfb\u7d71\u3002 RentPath \u5728 2021 \u5e74\u8b49\u660e\u4e86\u9019\u4e00\u9ede\uff0c\u5176\u4e2d\u958b\u767c\u4eba\u54e1\u80fd\u5920\u900f\u904e\u653e\u5927\u7db2\u9801\u4e0a\u7684\u5f71\u50cf\u7e2e\u5716\u5c07 Lighthouse \u6548\u80fd\u5f97\u5206\u63d0\u9ad8 17 \u5206\u3002\u4ed6\u5011\u8a2d\u6cd5\u5f71\u97ff Lighthouse \u5c07 LCP \u5143\u4ef6\u8996\u70ba\u8f03\u5927\u7684\u7e2e\u5716\u4e4b\u4e00\uff0c\u800c\u4e0d\u662f\u9801\u9762\u4e0a\u7684 Google \u5730\u5716\u5716\u584a\uff0c\u5f8c\u8005\u900f\u904e JavaScript \u8f09\u5165\u7684\u6642\u9593\u8981\u9577\u5f97\u591a\u3002<\/p>\n<p>\u95dc\u9375\u8981\u9ede\u662f\uff0c\u5982\u679c\u60a8\u7559\u610f LCP \u5143\u7d20\u4e26\u5c0d\u5176\u9032\u884c\u63a7\u5236\uff0c\u7121\u8ad6\u662f\u900f\u904e\u985e\u4f3c\u65bc RentPath \u7684 hack \u6216\u60a8\u81ea\u5df1\u7684\u8a2d\u8a08\u4e4b\u4e00\uff0c\u9084\u662f\u900f\u904e\u771f\u6b63\u7684\u589e\u5f37\uff0c\u7372\u5f97\u66f4\u9ad8\u7684 Lighthouse \u6548\u80fd\u5206\u6578\u90fd\u662f\u53ef\u884c\u7684\u3002\u96d6\u7136\u6211\u5728\u672c\u6587\u4e2d\u5c07\u9583\u5c4f\u65b9\u6cd5\u63cf\u8ff0\u70ba\u4e00\u7a2e\u99ed\u5ba2\u653b\u64ca\uff0c\u4f46\u9019\u4e26\u4e0d\u610f\u5473\u8457\u9019\u7a2e\u985e\u578b\u7684\u9ad4\u9a57\u4e0d\u80fd\u63d0\u4f9b\u6709\u610f\u7fa9\u4e14\u4ee4\u4eba\u6109\u6085\u7684\u4f7f\u7528\u8005\u9ad4\u9a57\u3002\u6548\u80fd\u548c\u4f7f\u7528\u8005\u9ad4\u9a57\u90fd\u570d\u7e5e\u8457\u7406\u89e3\u8f09\u5165\u904e\u7a0b\u548c\u610f\u5716\u3002<\/p>\n<h2><a id=\"how-to-hack-cls-scores-how-to-hack-cls-scores\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#how-to-hack-cls-scores\"><\/a>\u64cd\u7e31 CLS \u5206\u6578\u7684\u7b56\u7565<\/h2>\n<hr \/>\n<p><strong>\u5feb\u901f\u6458\u8981\uff1a\u5ef6\u9072\u8f09\u5165\u5c0e\u81f4\u4f48\u5c40\u8b8a\u66f4\u7684\u5167\u5bb9\uff0c\u76f4\u5230 Lighthouse \u6e2c\u8a66\u53ef\u80fd\u5b8c\u6210\uff08\u5047\u8a2d\u5b83\u6709\u8db3\u5920\u7684\u8cc7\u6599\uff09\u3002\u4f7f\u7528\u8b8a\u63db\u7684 CSS \u52d5\u756b\u901a\u5e38\u4e0d\u6703\u5f15\u767c CLS\uff0c\u9664\u975e\u8207\u5411 DOM \u6dfb\u52a0\u65b0\u5143\u7d20\u7d50\u5408\u4f7f\u7528\u3002<\/strong><\/p>\n<hr \/>\n<p>CLS \u4ee5\u5c0f\u6578\u5236\u4f86\u8861\u91cf\uff0c\u4f4e\u65bc 0.1 \u7684\u5206\u6578\u8996\u70ba\u826f\u597d\uff0c\u9ad8\u65bc 0.25 \u7684\u5206\u6578\u8996\u70ba\u8f03\u5dee\u3002 Lighthouse \u6839\u64da\u4f7f\u7528\u8005\u6703\u8a71\u671f\u9593\u767c\u751f\u7684\u6700\u91cd\u8981\u7684\u4e00\u7cfb\u5217\u610f\u5916\u4f48\u5c40\u8b8a\u5316\u4f86\u8a08\u7b97 CLS\uff0c\u540c\u6642\u8003\u616e\u8996\u53e3\u5927\u5c0f\u548c\u5169\u500b\u6e32\u67d3\u5e40\u4e4b\u9593\u4e0d\u7a69\u5b9a\u5143\u7d20\u7684\u79fb\u52d5\u3002\u96d6\u7136\u4f48\u5c40\u8b8a\u5316\u7684\u500b\u5225\u5be6\u4f8b\u53ef\u80fd\u7121\u95dc\u7dca\u8981\uff0c\u4f46\u4e00\u7cfb\u5217\u63a5\u4e8c\u9023\u4e09\u7684\u8b8a\u5316\u6703\u5c0d\u60a8\u7684\u5206\u6578\u7522\u751f\u4e0d\u5229\u5f71\u97ff\u3002<\/p>\n<p>\u5982\u679c\u60a8\u610f\u8b58\u5230\u60a8\u7684\u9801\u9762\u5728\u52a0\u8f09\u6642\u89f8\u767c\u4e86\u7169\u4eba\u7684\u4f48\u5c40\u8b8a\u5316\uff0c\u60a8\u53ef\u4ee5\u5c07\u5b83\u5011\u63a8\u9072\u5230\u9801\u9762\u52a0\u8f09\u5b8c\u6210\u5f8c\uff0c\u6b3a\u9a19 Lighthouse \u5047\u8a2d\u4e0d\u5b58\u5728 CLS \u554f\u984c\u3002\u5728\u500b\u4eba\u7bc4\u4f8b\u4e2d\uff0c\u793a\u7bc4\u9801\u9762\u50b3\u56de 0.143 \u7684 CLS \u5206\u6578\uff0c\u5373\u4f7f\u65b0\u65b0\u589e\u7684\u6587\u5b57\u5143\u7d20\u900f\u904e JavaScript \u7acb\u5373\u5c0e\u81f4\u539f\u59cb\u5167\u5bb9\u5411\u4e0a\u79fb\u52d5\u3002\u900f\u904e\u4f7f\u7528 a \u66ab\u505c\u5411 DOM \u65b0\u589e\u7bc0\u9ede\u7684\u8173\u672c\u96a8\u6a5f\u4e94\u79d2\u9418 <code>\u8a2d\u5b9a\u8d85\u6642()<\/code> \u51fd\u6578\u4e2d\uff0cLighthouse \u7121\u6cd5\u5075\u6e2c\u5230 CLS \u767c\u751f\u3002<\/p>\n<p>\u53e6\u4e00\u500b\u6f14\u793a\u9801\u9762\u7372\u5f97\u4e86 100 \u5206\u7684\u5b8c\u7f8e\u6027\u80fd\u5206\u6578\uff0c\u5118\u7ba1\u5176\u5be6\u7528\u6027\u548c\u7528\u6236\u53cb\u597d\u6027\u53ef\u80fd\u4e0d\u5982\u524d\u4e00\u500b\u9801\u9762\uff0c\u56e0\u70ba\u9644\u52a0\u5143\u7d20\u662f\u5728\u6c92\u6709\u4efb\u4f55\u7528\u6236\u4e92\u52d5\u7684\u60c5\u6cc1\u4e0b\u4efb\u610f\u51fa\u73fe\u7684\u3002<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/nI8BzRh.png\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/nI8BzRh.png\" alt=\"Lighthouse \u5728\u7b2c\u4e8c\u500b\u6f14\u793a\u4e2d\u7684\u8868\u73fe\u5f97\u5206\u70ba 100\u3002\" \/><\/a><\/p>\n<p>\u5118\u7ba1\u63a8\u9072\u9801\u9762\u8f09\u5165\u6e2c\u8a66\u7684\u4f48\u5c40\u8f49\u63db\u662f\u53ef\u884c\u7684\uff0c\u4f46\u9019\u7a2e\u89e3\u6c7a\u65b9\u6cd5\u5c0d\u65bc\u73fe\u5834\u6578\u64da\u6216\u9577\u671f\u7528\u6236\u9ad4\u9a57\u4e26\u4e0d\u6709\u6548\uff0c\u800c\u9019\u4e9b\u662f\u66f4\u95dc\u9375\u7684\u56e0\u7d20\uff0c\u5982\u524d\u9762\u6240\u8a0e\u8ad6\u7684\u3002\u5728\u4f7f\u7528 Lighthouse \u5728\u5ef6\u9072\u4f48\u5c40\u8f49\u63db\u7684\u9801\u9762\u4e0a\u9032\u884c\u300c\u6642\u9593\u8de8\u5ea6\u300d\u6e2c\u8a66\u6642\uff0c\u5b83\u6e96\u78ba\u5730\u5831\u544a\u4e86 0.186 \u5de6\u53f3\u7684\u4e0d\u4ee4\u4eba\u6eff\u610f\u7684 CLS \u5206\u6578\u3002<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/mjgWlWk.png\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/mjgWlWk.png\" alt=\"\u5728\u540c\u4e00\u9801\u9762\u4e0a\u5177\u6709\u4f48\u5c40\u8b8a\u5316\u7684\u6642\u9593\u8de8\u5ea6\u6e2c\u8a66\u7684\u87a2\u5e55\u622a\u5716\u3002\" \/><\/a><\/p>\n<p>\u5982\u679c\u60a8\u6709\u610f\u5275\u5efa\u985e\u4f3c\u65bc\u6f14\u793a\u7684\u6df7\u4e82\u7528\u6236\u9ad4\u9a57\uff0c\u5247\u53ef\u4ee5\u5229\u7528 CSS \u52d5\u756b\u548c\u8f49\u63db\u4f86\u7b56\u7565\u6027\u5730\u5c07\u5167\u5bb9\u5e36\u5165\u9801\u9762\u8996\u5716\u3002\u5728Google\u7684CLS\u6307\u5357\u4e2d\uff0c\u5b83\u63d0\u5230\u201c\u5167\u5bb9\u5f9e\u4e00\u500b\u4f4d\u7f6e\u5e73\u6ed1\u904e\u6e21\u5230\u53e6\u4e00\u500b\u4f4d\u7f6e\u53ef\u4ee5\u589e\u5f37\u7528\u6236\u7684\u7406\u89e3\u4e26\u5f15\u5c0e\u4ed6\u5011\u5b8c\u6210\u72c0\u614b\u8b8a\u5316\u201d\uff0c\u518d\u6b21\u5f37\u8abf\u4e86\u4e0a\u4e0b\u6587\u7528\u6236\u9ad4\u9a57\u7684\u91cd\u8981\u6027\u3002<\/p>\n<p>\u5728\u4e0b\u4e00\u500b\u6f14\u793a\u9801\u9762\u4e0a\uff0c\u6211\u4f7f\u7528 CSS \u8f49\u63db <code>\u898f\u6a21\uff08\uff09<\/code> \u70ba\u6587\u5b57\u5143\u7d20\u8a2d\u5b9a\u52d5\u756b <code>0<\/code> \u5230 <code>1<\/code> \u4e26\u5c07\u5b83\u5011\u91cd\u65b0\u653e\u7f6e\u5728\u9801\u9762\u4e0a\u3002\u9019\u4e9b\u8f49\u63db\u4e0d\u6703\u89f8\u767c CLS\uff0c\u56e0\u70ba\u7576\u6587\u4ef6\u6e96\u5099\u597d\u6642\uff0c\u6587\u5b57\u7bc0\u9ede\u5df2\u7d93\u5b58\u5728\u65bc DOM \u4e2d\u3002\u6211\u5728\u5be6\u9a57\u904e\u7a0b\u4e2d\u8a3b\u610f\u5230\uff0c\u5982\u679c\u5728\u4f7f\u7528 JavaScript \u8f09\u5165\u9801\u9762\u5f8c\u5c07\u6587\u5b57\u5143\u7d20\u52d5\u614b\u63d2\u5165 DOM \u4e2d\uff0c\u7136\u5f8c\u9032\u884c\u52d5\u756b\u8655\u7406\uff0cLighthouse \u5c07\u5075\u6e2c CLS \u4e26\u9032\u884c\u76f8\u61c9\u7684\u8a55\u4f30\u3002<\/p>\n<h2><a id=\"you-cant-manipulate-a-speed-index-score-you-cant-manipulate-a-speed-index-score\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#you-cant-manipulate-a-speed-index-score\"><\/a>\u60a8\u7121\u6cd5\u64cd\u7e31\u901f\u5ea6\u6307\u6578\u5206\u6578<\/h2>\n<p>\u901f\u5ea6\u6307\u6578\u5206\u6578\u662f\u6839\u64da\u9801\u9762\u6e32\u67d3\u6642\u7684\u8996\u89ba\u9032\u5ea6\u8a08\u7b97\u7684\u3002\u5728\u9801\u9762\u8f09\u5165\u5e8f\u5217\u65e9\u671f\uff0c\u5167\u5bb9\u8f09\u5165\u5f97\u8d8a\u5feb\uff0c\u7d50\u679c\u5c31\u8d8a\u597d\u3002<\/p>\n<p>\u4eba\u5011\u53ef\u4ee5\u5617\u8a66\u63a1\u7528\u67d0\u4e9b\u7b56\u7565\u4f86\u6b3a\u9a19\u901f\u5ea6\u6307\u6578\uff0c\u4f7f\u5176\u611f\u77e5\u8f03\u6162\u7684\u8f09\u5165\u5e8f\u5217\u3002\u76f8\u53cd\uff0c\u4e5f\u6c92\u6709\u53ef\u884c\u7684\u65b9\u6cd5\u4f86\u4eba\u70ba\u5730\u52a0\u5feb\u5167\u5bb9\u7684\u8f09\u5165\u3002\u63d0\u9ad8\u901f\u5ea6\u6307\u6578\u5206\u6578\u7684\u552f\u4e00\u65b9\u6cd5\u662f\u512a\u5316\u60a8\u7684\u7db2\u9801\uff0c\u4ee5\u76e1\u5feb\u52a0\u8f09\u76e1\u53ef\u80fd\u591a\u7684\u5167\u5bb9\u3002\u96d6\u7136\u9019\u7a2e\u65b9\u6cd5\u5728\u7576\u524d\u7684\u7db2\u8def\u5834\u666f\u4e2d\u53ef\u80fd\u4e26\u4e0d\u5b8c\u5168\u5be6\u7528\uff08\u4e3b\u8981\u662f\u56e0\u70ba\u5b83\u6703\u5371\u53ca\u8a2d\u8a08\u5e2b\u7684\u89d2\u8272\uff09\uff0c\u4f46\u60a8\u53ef\u4ee5\u5b8c\u5168\u81f4\u529b\u65bc\u900f\u904e\u4ee5\u4e0b\u65b9\u5f0f\u964d\u4f4e\u901f\u5ea6\u6307\u6578\uff1a<\/p>\n<ul>\n<li>\u76f4\u63a5\u5f9e CDN \u63d0\u4f9b\u975c\u614b HTML \u7db2\u9801\uff0c<\/li>\n<li>\u7701\u7565\u9801\u9762\u4e2d\u7684\u5716\u50cf\uff0c<\/li>\n<li>\u6e1b\u5c11\u6216\u522a\u9664 CSS\uff0c\u4ee5\u53ca<\/li>\n<li>\u505c\u6b62\u8f09\u5165 JavaScript \u6216\u4efb\u4f55\u5916\u90e8\u4f9d\u8cf4\u9805\u3002<\/li>\n<\/ul>\n<h2><a id=\"you-also-cant-genuinely-manipulate-a-tbt-score-you-also-cant-genuinely-manipulate-a-tbt-score\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#you-also-cant-genuinely-manipulate-a-tbt-score\"><\/a>\u60a8\u4e5f\u7121\u6cd5\u771f\u6b63\u64cd\u7e31 TBT \u5206\u6578<\/h2>\n<p>TBT \u6e2c\u91cf FCP \u4e4b\u5f8c\u4e3b\u7dda\u7a0b\u88ab JavaScript \u6d3b\u52d5\u5145\u5206\u963b\u7919\u4ee5\u963b\u7919\u5c0d\u4f7f\u7528\u8005\u4e92\u52d5\u7684\u56de\u61c9\u7684\u7e3d\u6301\u7e8c\u6642\u9593\u3002\u7406\u60f3\u7684 TBT \u5206\u6578\u4f4e\u65bc 200 \u6beb\u79d2\u3002<\/p>\n<p>\u5927\u91cf\u4f7f\u7528 JavaScript \u7684 Web \u61c9\u7528\u7a0b\u5f0f\uff08\u5982\u55ae\u9801\u61c9\u7528\u7a0b\u5f0f\uff09\u5728\u9801\u9762\u8f09\u5165\u671f\u9593\uff08\u800c\u4e0d\u662f\u5728\u50b3\u8f38\u6e32\u67d3\u7684 HTML \u4e4b\u524d\u5728\u4f3a\u670d\u5668\u4e0a\uff09\u57f7\u884c\u8907\u96dc\u7684\u72c0\u614b\u8a08\u7b97\u548c DOM \u8abf\u6574\uff0c\u5f80\u5f80\u6703\u7372\u5f97\u8f03\u5dee\u7684 TBT \u5206\u6578\u3002\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u53ef\u4ee5\u60f3\u50cf\uff0c\u4eba\u5011\u53ef\u4ee5\u900f\u904e\u63a8\u9072\u6240\u6709 JavaScript \u76f4\u5230 Lighthouse \u8a55\u4f30\u7d50\u675f\u4f86\u6539\u8b8a\u4ed6\u5011\u7684 TBT \u5206\u6578\u3002\u5118\u7ba1\u5982\u6b64\uff0c\u4ecd\u9700\u8981\u63d0\u4f9b\u4f54\u4f4d\u7b26\u5167\u5bb9\u6216\u8f09\u5165\u756b\u9762\u4ee5\u6eff\u8db3 FCP \u548c LCP \u8981\u6c42\u4e26\u901a\u77e5\u7528\u6236\u5373\u5c07\u9032\u884c\u7684\u6d3b\u52d5\u3002\u6b64\u5916\uff0c\u9084\u9700\u8981\u52aa\u529b\u700f\u89bd\u6b63\u5728\u4f7f\u7528\u7684\u524d\u7aef\u6846\u67b6\u3002 \uff08\u907f\u514d\u8f09\u5165\u4f54\u4f4d\u7b26\u9801\u9762\uff0c\u8a72\u9801\u9762\u6700\u7d42\u6703\u5728\u9801\u9762\u8f09\u5165\u5e8f\u5217\u4e2d\u7684\u67d0\u500b\u4e0d\u78ba\u5b9a\u6642\u523b\u8f09\u5165\u4e0d\u540c\u7684 React \u61c9\u7528\u7a0b\u5f0f\uff01\uff09<\/p>\n<p>\u4e00\u500b\u6709\u8da3\u7684\u65b9\u9762\u662f\uff0c\u96d6\u7136\u9ad8\u7d1a JavaScript \u529f\u80fd\u5728\u5ba2\u6236\u7aef\u6d3b\u52d5\u4e2d\u4ecd\u7136\u5f88\u666e\u904d\uff0c\u4f46\u7576\u524d Web \u74b0\u5883\u4e2d\u7684\u5275\u65b0\u6b63\u5728\u4fc3\u9032\u96c6\u9ad4\u52aa\u529b\uff0c\u4ee5\u6e1b\u5c11 TBT \u5206\u6578\u4f4e\u65bc\u6a19\u6e96\u7684\u60c5\u6cc1\u3002\u8a31\u591a\u524d\u7aef\u6846\u67b6\u8207\u73fe\u4ee3\u8a17\u7ba1\u670d\u52d9\u76f8\u7d50\u5408\uff0c\u5177\u6709\u6e32\u67d3\u9801\u9762\u4e26\u6309\u9700\u57f7\u884c\u8907\u96dc\u908f\u8f2f\u7684\u80fd\u529b\uff0c\u800c\u7121\u9700\u4efb\u4f55\u5ba2\u6236\u7aef JavaScript\u3002\u96d6\u7136\u5f9e\u5ba2\u6236\u7aef\u6d88\u9664 JavaScript \u4e26\u4e0d\u662f\u76ee\u6a19\uff0c\u4f46\u6e1b\u5c11\u5176\u90e8\u7f72\u7684\u53ef\u80fd\u6027\u6709\u5f88\u591a\u7a2e\uff0c\u5f9e\u800c\u964d\u4f4e\u9801\u9762\u8f09\u5165\u671f\u9593\u4e3b\u57f7\u884c\u7dd2\u4e0a\u904e\u591a\u904b\u7b97\u4efb\u52d9\u7684\u98a8\u96aa\u3002<\/p>\n<h2><a id=\"in-summary-lighthouse-remains-merely-an-approximate-guide-in-summary-lighthouse-remains-merely-an-approximate-guide\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#in-summary-lighthouse-remains-merely-an-approximate-guide\"><\/a>\u7e3d\u7d50\uff1a\u71c8\u5854\u4ecd\u7136\u53ea\u662f\u4e00\u500b\u5927\u81f4\u7684\u6307\u5357<\/h2>\n<p>Google Lighthouse \u7121\u6cd5\u627e\u51fa\u7279\u5b9a\u7db2\u7ad9\u4e2d\u7684\u6bcf\u500b\u7f3a\u9677\u3002\u5118\u7ba1 Lighthouse \u7684\u6548\u80fd\u6307\u6a19\u5728\u5c0d\u4f7f\u7528\u8005\u64cd\u4f5c\u7684\u56de\u61c9\u80fd\u529b\u65b9\u9762\u512a\u5148\u8003\u616e\u9801\u9762\u53ef\u7528\u6027\uff0c\u4f46\u5b83\u4e26\u6c92\u6709\u5168\u9762\u8b58\u5225 2024 \u5e74\u7684\u6240\u6709\u53ef\u7528\u6027\u6216\u53ef\u8a2a\u554f\u6027\u554f\u984c\u3002<\/p>\n<p>2019 \u5e74\uff0c\u66fc\u52aa\u57c3\u723e\u00b7\u99ac\u5716\u4f50\u7dad\u5947 (Manuel Matuzovi\u0107) \u9032\u884c\u4e86\u4e00\u9805\u5be6\u9a57\uff0c\u6545\u610f\u88fd\u4f5c\u4e86\u4e00\u500b\u8a2d\u8a08\u7cdf\u7cd5\u3001\u4f46 Lighthouse \u7d66\u4e88\u6b63\u9762\u8a55\u50f9\u7684\u7db2\u9801\u3002\u6211\u63a8\u6e2cLighthouse\u7684\u6548\u80fd\u5728\u4e94\u5e74\u5f8c\u6703\u6709\u6240\u63d0\u5347\uff1b\u7136\u800c\uff0c\u4e8b\u5be6\u4e26\u975e\u5982\u6b64\u3002<\/p>\n<p>\u5728\u6700\u5f8c\u7684\u793a\u7bc4\u9801\u9762\u4e2d\uff0cCSS \u548c JavaScript \u6703\u4f7f\u8f38\u5165\u4e8b\u4ef6\u5931\u6548\uff0c\u4f7f\u9801\u9762\u7121\u6cd5\u56de\u61c9\u4f7f\u7528\u8005\u64cd\u4f5c\u3002\u4e94\u79d2\u5f8c\uff0cJavaScript \u6703\u66f4\u6539\u884c\u70ba\uff0c\u5141\u8a31\u8207\u6309\u9215\u4e92\u52d5\u3002\u4ee4\u4eba\u9a5a\u8a1d\u7684\u662f\uff0c\u8a72\u9801\u9762\u5728\u6548\u80fd\u548c\u53ef\u8a2a\u554f\u6027\u65b9\u9762\u90fd\u4fdd\u6301\u4e86\u6eff\u5206\u3002<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/TGXW3nq.png\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/TGXW3nq.png\" alt=\"Lighthouse \u7684\u63d2\u5716\u986f\u793a\u4e86\u7121\u7528\u4e14\u7121\u6cd5\u5b58\u53d6\u7684\u7db2\u9801\u7684\u5b8c\u7f8e\u6548\u80fd\u548c\u53ef\u8a2a\u554f\u6027\u8a55\u7d1a\u3002\" \/><\/a><\/p>\n<p>\u50c5\u4f9d\u9760 Lighthouse \u4f86\u53d6\u4ee3\u53ef\u7528\u6027\u8a55\u4f30\u548c\u908f\u8f2f\u63a8\u7406\u662f\u4e0d\u53ef\u53d6\u7684\u3002<\/p>\n<h2><a id=\"additional-silly-exploits-additional-silly-exploits\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a><a href=\"#additional-silly-exploits\"><\/a>\u5176\u4ed6\u7570\u60f3\u5929\u958b\u7684\u5229\u7528<\/h2>\n<p>\u5728\u751f\u6d3b\u7684\u5404\u500b\u65b9\u9762\uff0c\u90fd\u5b58\u5728\u8457\u64cd\u7e31\u7cfb\u7d71\u7684\u7b56\u7565\u3002\u4ee5\u4e0b\u4ecb\u7d39\u4e86\u4e00\u4e9b\u7d93\u904e\u9a57\u8b49\u4e14\u6709\u4fdd\u8b49\u7684\u7b56\u7565\uff0c\u53ef\u4ee5\u4eba\u70ba\u5730\u63d0\u9ad8\u60a8\u7684 Lighthouse \u6548\u80fd\u5206\u6578\uff0c\u8d85\u8d8a\u6240\u6709\u5176\u4ed6\u7b56\u7565\uff1a<\/p>\n<ul>\n<li>\u50c5\u5728\u9ad8\u901f\u548c\u9802\u7d1a\u786c\u9ad4\u4e0a\u9032\u884c Lighthouse \u8a55\u4f30\u3002<\/li>\n<li>\u78ba\u4fdd\u60a8\u7684\u7db2\u8def\u9023\u7dda\u8655\u65bc\u6700\u4f73\u72c0\u614b\uff1b\u5982\u679c\u9700\u8981\u7684\u8a71\u642c\u9077\u3002<\/li>\n<li>\u50c5\u4f7f\u7528\u5be6\u9a57\u5ba4\u6578\u64da\uff0c\u4e0d\u5408\u4f75\u4f7f\u7528\u4e0a\u8ff0\u9ad8\u901f\u786c\u9ad4\u548c\u51fa\u8272\u7684\u4e92\u806f\u7db2\u9023\u63a5\u6536\u96c6\u7684\u5be6\u969b\u4f7f\u7528\u6578\u64da\u3002<\/li>\n<li>\u5229\u7528\u672c\u6587\u4e2d\u8a73\u7d30\u4ecb\u7d39\u7684\u6240\u6709\u5de7\u5999\u6280\u5de7\uff0c\u5728\u4e0d\u540c\u7684\u5be6\u9a57\u5ba4\u689d\u4ef6\u4e0b\u91cd\u8907\u8a55\u4f30\uff0c\u76f4\u5230\u9054\u5230\u7d66\u60a8\u7684\u719f\u4eba\u3001\u540c\u4e8b\u548c\u7db2\u8def\u964c\u751f\u4eba\u7559\u4e0b\u6df1\u523b\u5370\u8c61\u7684\u9810\u671f\u7d50\u679c\u3002<\/li>\n<\/ul>\n<p><strong>\u91cd\u8981\u7684<\/strong>: <em>\u82e5\u8981\u6df1\u5165\u4e86\u89e3\u7db2\u8def\u6548\u80fd\u4e26\u63d0\u5347\u7db2\u7ad9\u512a\u5316\u6280\u80fd\uff0c\u8acb\u8003\u616e\u63a1\u7528 Sentry \u7b49\u61c9\u7528\u7a0b\u5f0f\u76e3\u63a7\u5de5\u5177\u3002\u5c07 Lighthouse \u8996\u70ba\u521d\u6b65\u6307\u6a19\uff0c\u5c07 Sentry \u8996\u70ba\u6700\u7d42\u7684\u751f\u7522\u8cc7\u6599\u64f7\u53d6\u3001\u9ad8\u6548\u7684\u7db2\u8def\u751f\u547d\u9ad4\u8a2d\u5099\u3002<\/em><\/p>\n<p>\u6700\u5f8c\uff0c\u9019\u88e1\u662f\u7528\u65bc\u6559\u80b2\u76ee\u7684\u7684\u5b8c\u6574\u6f14\u793a\u7db2\u7ad9\u7684\u9023\u7d50\u3002<\/p>","protected":false},"excerpt":{"rendered":"Google Lighthouse \u812b\u7a4e\u800c\u51fa\uff0c\u6210\u70ba\u904a\u6232\u5316\u548c\u9f13\u52f5\u589e\u5f37\u7db2\u8def\u6700\u6709\u6548\u7684\u65b9\u6cd5\u4e4b\u4e00\u2026","protected":false},"author":1,"featured_media":2436,"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],"tags":[300],"ppma_author":[290],"class_list":{"0":"post-4937","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-advanced-seo","8":"tag-tentenlearning","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>Google Lighthouse: An Ethical Hacker&#039;s Manual for Enhancing User Experience and Search Engine Visibility (2024) - AI SEO Agency<\/title>\n<meta name=\"description\" content=\"Google Lighthouse stands out as one of the most efficient methods to gamify and encourage enhancement of web page performance for developers. Utilizing\" \/>\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\/advanced-seo\/\u8c37\u6b4c\u71c8\u5854-2024-\u5e74\u589e\u5f37\u7528\u6236\u9ad4\u9a57\u548c\u641c\u5c0b\u5f15\u64ce\u53ef\u898b\u6027\u7684\u9053\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Lighthouse: An Ethical Hacker&#039;s Manual for Enhancing User Experience and Search Engine Visibility (2024)\" \/>\n<meta property=\"og:description\" content=\"Google Lighthouse stands out as one of the most efficient methods to gamify and encourage enhancement of web page performance for developers. Utilizing\" \/>\n<meta property=\"og:url\" content=\"https:\/\/seo.tenten.co\/zh\/advanced-seo\/\u8c37\u6b4c\u71c8\u5854-2024-\u5e74\u589e\u5f37\u7528\u6236\u9ad4\u9a57\u548c\u641c\u5c0b\u5f15\u64ce\u53ef\u898b\u6027\u7684\u9053\/\" \/>\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-07-06T05:33:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-06T05:39:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Building-a-Secure-Home-Network-A-Comprehensive-Guide-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=\"18 \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\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/\"},\"author\":{\"name\":\"Pladora Maria\",\"@id\":\"https:\/\/seo.tenten.co\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba\"},\"headline\":\"Google Lighthouse: An Ethical Hacker&#8217;s Manual for Enhancing User Experience and Search Engine Visibility (2024)\",\"datePublished\":\"2024-07-06T05:33:25+00:00\",\"dateModified\":\"2024-07-06T05:39:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/\"},\"wordCount\":3692,\"publisher\":{\"@id\":\"https:\/\/seo.tenten.co\/#organization\"},\"image\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/The-Rise-of-Quantum-Computing-What-Does-the-Future-Hold-scaled.jpg\",\"keywords\":[\"TentenLearning\"],\"articleSection\":[\"Advanced SEO\"],\"inLanguage\":\"zh-TW\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/\",\"url\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/\",\"name\":\"Google Lighthouse: An Ethical Hacker's Manual for Enhancing User Experience and Search Engine Visibility (2024) - AI SEO Agency\",\"isPartOf\":{\"@id\":\"https:\/\/seo.tenten.co\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/The-Rise-of-Quantum-Computing-What-Does-the-Future-Hold-scaled.jpg\",\"datePublished\":\"2024-07-06T05:33:25+00:00\",\"dateModified\":\"2024-07-06T05:39:15+00:00\",\"description\":\"Google Lighthouse stands out as one of the most efficient methods to gamify and encourage enhancement of web page performance for developers. Utilizing\",\"breadcrumb\":{\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#primaryimage\",\"url\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/The-Rise-of-Quantum-Computing-What-Does-the-Future-Hold-scaled.jpg\",\"contentUrl\":\"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/The-Rise-of-Quantum-Computing-What-Does-the-Future-Hold-scaled.jpg\",\"width\":2560,\"height\":1440},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/seo.tenten.co\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Lighthouse: An Ethical Hacker&#8217;s Manual for Enhancing User Experience and Search Engine Visibility (2024)\"}]},{\"@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":"Google Lighthouse: An Ethical Hacker's Manual for Enhancing User Experience and Search Engine Visibility (2024) - AI SEO Agency","description":"Google Lighthouse stands out as one of the most efficient methods to gamify and encourage enhancement of web page performance for developers. Utilizing","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\/advanced-seo\/\u8c37\u6b4c\u71c8\u5854-2024-\u5e74\u589e\u5f37\u7528\u6236\u9ad4\u9a57\u548c\u641c\u5c0b\u5f15\u64ce\u53ef\u898b\u6027\u7684\u9053\/","og_locale":"zh_TW","og_type":"article","og_title":"Google Lighthouse: An Ethical Hacker's Manual for Enhancing User Experience and Search Engine Visibility (2024)","og_description":"Google Lighthouse stands out as one of the most efficient methods to gamify and encourage enhancement of web page performance for developers. Utilizing","og_url":"https:\/\/seo.tenten.co\/zh\/advanced-seo\/\u8c37\u6b4c\u71c8\u5854-2024-\u5e74\u589e\u5f37\u7528\u6236\u9ad4\u9a57\u548c\u641c\u5c0b\u5f15\u64ce\u53ef\u898b\u6027\u7684\u9053\/","og_site_name":"AI SEO Agency","article_publisher":"https:\/\/www.facebook.com\/tentencreative\/","article_published_time":"2024-07-06T05:33:25+00:00","article_modified_time":"2024-07-06T05:39:15+00:00","og_image":[{"width":2560,"height":1440,"url":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/Building-a-Secure-Home-Network-A-Comprehensive-Guide-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":"18 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#article","isPartOf":{"@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/"},"author":{"name":"Pladora Maria","@id":"https:\/\/seo.tenten.co\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba"},"headline":"Google Lighthouse: An Ethical Hacker&#8217;s Manual for Enhancing User Experience and Search Engine Visibility (2024)","datePublished":"2024-07-06T05:33:25+00:00","dateModified":"2024-07-06T05:39:15+00:00","mainEntityOfPage":{"@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/"},"wordCount":3692,"publisher":{"@id":"https:\/\/seo.tenten.co\/#organization"},"image":{"@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#primaryimage"},"thumbnailUrl":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/The-Rise-of-Quantum-Computing-What-Does-the-Future-Hold-scaled.jpg","keywords":["TentenLearning"],"articleSection":["Advanced SEO"],"inLanguage":"zh-TW"},{"@type":"WebPage","@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/","url":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/","name":"Google Lighthouse: An Ethical Hacker's Manual for Enhancing User Experience and Search Engine Visibility (2024) - AI SEO Agency","isPartOf":{"@id":"https:\/\/seo.tenten.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#primaryimage"},"image":{"@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#primaryimage"},"thumbnailUrl":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/The-Rise-of-Quantum-Computing-What-Does-the-Future-Hold-scaled.jpg","datePublished":"2024-07-06T05:33:25+00:00","dateModified":"2024-07-06T05:39:15+00:00","description":"Google Lighthouse stands out as one of the most efficient methods to gamify and encourage enhancement of web page performance for developers. Utilizing","breadcrumb":{"@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#primaryimage","url":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/The-Rise-of-Quantum-Computing-What-Does-the-Future-Hold-scaled.jpg","contentUrl":"https:\/\/seo.tenten.co\/wp-content\/uploads\/2023\/12\/The-Rise-of-Quantum-Computing-What-Does-the-Future-Hold-scaled.jpg","width":2560,"height":1440},{"@type":"BreadcrumbList","@id":"https:\/\/seo.tenten.co\/en\/advanced-seo\/google-lighthouse-an-ethical-hackers-manual-for-enhancing-user-experience-and-search-engine-visibility-2024\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/seo.tenten.co\/"},{"@type":"ListItem","position":2,"name":"Google Lighthouse: An Ethical Hacker&#8217;s Manual for Enhancing User Experience and Search Engine Visibility (2024)"}]},{"@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\/4937","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=4937"}],"version-history":[{"count":3,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/posts\/4937\/revisions"}],"predecessor-version":[{"id":4943,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/posts\/4937\/revisions\/4943"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/media\/2417"}],"wp:attachment":[{"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/media?parent=4937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/categories?post=4937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/tags?post=4937"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/seo.tenten.co\/zh\/wp-json\/wp\/v2\/ppma_author?post=4937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}