{"id":530279,"date":"2020-09-21T15:40:50","date_gmt":"2020-09-21T07:40:50","guid":{"rendered":"https:\/\/loyseo.com\/tutorial\/%e5%a6%82%e4%bd%95%e5%9c%a8wordpress%e4%b8%ad%e5%88%aa%e9%99%a4%e8%b0%b7%e6%ad%8c%e5%ad%97%e9%ab%94%e3%80%81%e6%9c%ac%e5%9c%b0%e8%a8%97%e7%ae%a1%e8%b0%b7%e6%ad%8c%e5%ad%97%e9%ab%94%ef%bc%883%e7%a8%ae\/"},"modified":"2024-02-20T12:25:22","modified_gmt":"2024-02-20T04:25:22","slug":"remove-google-fonts-wordpress","status":"publish","type":"tutorial","link":"https:\/\/loyseo.com\/zh-hant\/tutorial\/wordpress-performance-speed\/remove-google-fonts-wordpress\/","title":{"rendered":"\u5982\u4f55\u5728WordPress\u4e2d\u522a\u9664\u8c37\u6b4c\u5b57\u9ad4\u3001\u672c\u5730\u8a17\u7ba1\u8c37\u6b4c\u5b57\u9ad4\uff083\u7a2e\u7c21\u55ae\u65b9\u6cd5\uff09"},"content":{"rendered":"\n<p>\u8a31\u591a<a href=\"https:\/\/loyseo.com\/wordpress-theme\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress\u4e3b\u984c<\/a>\u90fd\u6703\u7528Google\u5b57\u9ad4\uff0c\u7136\u800c\uff0cGoogle\u5b57\u9ad4\u4e26\u4e0d\u5b58\u5132\u5728\u7db2\u7ad9\u672c\u5730\uff0c\u5b83\u662f\u4e00\u500b\u7b2c\u4e09\u65b9\u8cc7\u6e90\uff0c\u9019\u6703\u5f71\u97ff\u7db2\u7ad9\u7684\u8f09\u5165\u901f\u5ea6\uff0c\u8b93\u7db2\u7ad9\u8b8a\u6162\uff0c\u5c24\u5176\u7576\u4f60\u7684\u7db2\u7ad9\u9762\u5411\u7684\u662f\u570b\u5167\u4f7f\u7528\u8005\u6642\uff0c\u66f4\u9700\u8981\u7981\u7528Google\u5b57\u9ad4\u3002<\/p>\n\n<p>\u8d77\u521d\uff0c\u6211\u7528<a href=\"https:\/\/loyseo.com\/zh-hant\/plugins\/code-snippets\/\" class=\"rank-math-link\">Code snippets<\/a>\u7684<a href=\"https:\/\/loyseo.com\/zh-hant\/tutorial\/code-snippets-for-wordpress\/\" class=\"rank-math-link\">\u4ee3\u78bc\u6bb5<\/a>\u4f86\u79fb\u9664\u4e3b\u984c\u7684\u8c37\u6b4c\u5b57\u9ad4\uff0c\u7136\u800c\u767c\u73fe\u4f9d\u820a\u6709\u6f0f\u7db2\u4e4b\u9b5a\uff0c\u6211\u53c8\u4e0d\u9858\u610f\u53bb\u7d30\u7a76\u4ee3\u78bc\uff0c\u6240\u4ee5\uff0c\u5c31\u627e\u5230\u4e86\u5169\u500b\u7c21\u55ae\u7684\u65b9\u6cd5\u4f86\u522a\u9664\u7db2\u7ad9\u4e2d\u7684\u8c37\u6b4c\u5b57\u9ad4\uff0c\u4ee5\u5229\u65bc<a href=\"https:\/\/loyseo.com\/zh-hant\/tutorial\/wordpress-performance-speed\/\" class=\"rank-math-link\">\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6<\/a>\u3002<\/p>\n\n<p>\u5982\u679c\u4f60\u60f3\u4fdd\u7559\u8c37\u6b4c\u5b57\u9ad4\uff0c\u4f46\u53c8\u60f3\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\uff0c\u53ef\u4ee5\u8003\u616e\u5c07\u8c37\u6b4c\u5b57\u9ad4\u7576\u5730\u8a9e\u7cfb\u5316\uff08\u5373\u5c07\u5b57\u9ad4\u5b58\u5132\u5230\u4f60\u81ea\u5df1\u7684\u4e3b\u6a5f\uff09\uff0c\u4e0b\u6587\u4e2d\u7684OMGF\u5916\u639b\u7a0b\u5f0f\u5c31\u80fd\u5be6\u73fe\u8c37\u6b4c\u5b57\u9ad4\u672c\u5730\u8a17\u7ba1\u3002<\/p>\n\n<p>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u4e3b\u984c\u662fAstra\uff0c\u4e3b\u984c\u4e5f\u63d0\u4f9b\u4e86\u8c37\u6b4c\u5b57\u9ad4\u7576\u5730\u8a9e\u7cfb\u5316\u529f\u80fd\uff0c\u8a73\u898b\u4e0b\u6587\u3002<\/p>\n\n<p><strong>\u6700\u65b0\u65b9\u6848\uff1a<\/strong>\u6211\u76ee\u524d\u7d66\u5ba2\u6236\u548c\u81ea\u5df1\u90fd\u4f7f\u7528\u4ed8\u8cbb\u5916\u639b\u7a0b\u5f0f<a href=\"#perfmatters\" target=\"_blank\" rel=\"noreferrer noopener sponsored\">perfmatters<\/a>\u4f86\u9032\u884c\u8c37\u6b4c\u5b57\u9ad4\u7684\u79fb\u9664\u8207\u7576\u5730\u8a9e\u7cfb\u5316\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u5982\u4f55\u6aa2\u67e5\u81ea\u5df1\u7684\u7db2\u7ad9\u662f\u5426\u4f7f\u7528\u8c37\u6b4c\u5b57\u9ad4<\/h2>\n\n<p>\u8acb\u4f7f\u7528\u5de5\u5177 <a href=\"https:\/\/gtmetrix.com\/\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">https:\/\/gtmetrix.com\/<\/a>\uff0c\u8f38\u5165\u4f60\u7684\u7db2\u7ad9\uff0c\u9ede\u64caanalyze\u6309\u9215\uff0c\u5728\u6aa2\u6e2c\u7d50\u679c\u4e2d\uff08\u5982\u4e0b\u5716\u6240\u793a\uff09\uff0c\u9032\u5165waterfall\u6a19\u7c64\u4e5f\uff0c\u9ede\u64cafonts\uff0c\u5c31\u80fd\u770b\u5230\u5b57\u9ad4\u4e2d\u662f\u5426\u6709\u8c37\u6b4c\u5b57\u9ad4\uff0c\u5b57\u9ad4\u6240\u5728\u7684\u7db2\u57df\u662f fonts.gstatic.com\u3002<\/p>\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1259\" height=\"487\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2021\/07\/find-google-font.png\" alt=\"&#x5982;&#x4F55;&#x5728;WordPress&#x4E2D;&#x522A;&#x9664;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#x3001;&#x672C;&#x5730;&#x8A17;&#x7BA1;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#xFF08;3&#x7A2E;&#x7C21;&#x55AE;&#x65B9;&#x6CD5;&#xFF09;\" class=\"wp-image-512558\" title=\"-\"><\/figure>\n\n<p>\u7576\u6211\u7528\u4e0b\u9762\u7684\u65b9\u6cd5\u628a\u8c37\u6b4c\u5b57\u9ad4\u79fb\u9664\u540e\uff0c\u8f09\u5165\u6642\u9593\u6e1b\u5c11\u4e860.6s\uff0crequests\u8acb\u6c42\u6578\u4e5f\u964d\u4f4e\u4e86<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1326\" height=\"191\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/09\/remove-google-font-wordpress-.jpg\" alt=\"remove google font wordpress\" class=\"wp-image-505680\" title=\"-\"><\/figure>\n\n<p>\u63a5\u4e0b\u4f86\uff0c\u6211\u5011\u770b\u770b\u7981\u7528\u8c37\u6b4c\u5b57\u9ad4\u7684\u5177\u9ad4\u65b9\u6cd5<\/p>\n\n<h2 class=\"wp-block-heading\">\u7528OMGF\u5916\u639b\u7a0b\u5f0f\u79fb\u9664\u8c37\u6b4c\u5b57\u9ad4<\/h2>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"563\" height=\"245\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/09\/remove-google-font-wordpress-1-1.png\" alt=\"remove google font wordpress\" class=\"wp-image-505681\" title=\"-\"><\/figure>\n\n<pre class=\"wp-block-preformatted\"><strong>\u5099\u8a3b\uff1a<\/strong>\u7531\u65bc\u5916\u639b\u7a0b\u5f0f\u7d93\u5e38\u66f4\u65b0\uff0c\u53ef\u80fd\u4f60\u770b\u5230\u7684\u4ecb\u9762\u8ddf\u6211\u6559\u7a0b\u91cc\u7684\u5df2\u7d93\u4e0d\u4e00\u6a23\u4e86\uff0c\u5c46\u6642\uff0c\u8acb\u81ea\u884c\u67e5\u770b\u4ecb\u9762\u88e1\u7684\u6587\u6848\u4ecb\u7d39\u548c\u5b98\u65b9\u6587\u6a94\u4f86\u9032\u884c\u914d\u7f6e\u3002 \u6211\u76ee\u524d\u7d66\u5ba2\u6236\u548c\u81ea\u5df1\u90fd\u4f7f\u7528\u4ed8\u8cbb\u5916\u639b\u7a0b\u5f0f<a href=\"#perfmatters\" target=\"_blank\" rel=\"noreferrer noopener sponsored\">perfmatters<\/a>\u4f86\u9032\u884c\u8c37\u6b4c\u5b57\u9ad4\u7684\u79fb\u9664\u8207\u7576\u5730\u8a9e\u7cfb\u5316\u3002<\/pre>\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/host-webfonts-local\/\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">OMGF\u5916\u639b\u7a0b\u5f0f<\/a>\u6d3b\u8e8d\u5b89\u88dd20000+\uff0c\u4e94\u661f\u597d\u8a55\uff0c\u6700\u8fd1\u4e00\u6b21\u66f4\u65b0\u662f4\u5468\u524d\uff0c\u770b\u8d77\u4f86\u662f\u500b\u6709\u4eba\u7dad\u8b77\u7684\u512a\u8cea\u5916\u639b\u7a0b\u5f0f\uff0c\u4e26\u4e14\u9019\u500b\u5916\u639b\u7a0b\u5f0f\u672c\u8eab\u662f\u70ba\u4e86\u5c07\u8c37\u6b4c\u5b57\u9ad4\u672c\u5730\u5316\u7684\uff0c\u5982\u679c\u4f60\u4e0d\u60f3\u7981\u7528\u8c37\u6b4c\u5b57\u9ad4\uff0c\u4e5f\u53ef\u4ee5\u5c07\u5b57\u9ad4\u672c\u5730\u5316\u3002<\/p>\n\n<ol class=\"wp-block-list\">\n<li>\u5b89\u88dd\u4e26\u555f\u7528omgf\u5916\u639b\u7a0b\u5f0f\uff0c<a href=\"https:\/\/loyseo.com\/zh-hant\/tutorial\/wordpress\/install-plugin\/\" class=\"rank-math-link\">\u5b89\u88dd\u5916\u639b\u7a0b\u5f0f\u7684\u6559\u7a0b\u5728\u6b64<\/a><\/li>\n\n\n\n<li>\u9032\u5165wordpress\u5f8c\u53f0\u7684setting &#8211; Optimize Google Fonts\u9801\u9762\u4e2d\uff0c\u5982\u4e0b\u5716\u6240\u793a\uff0c\u5728optimize fonts\u4e2d\u52fe\u9078automatic\u6a21\u5f0f\uff0c\u4fdd\u5b58\u5b83\u3002<\/li>\n<\/ol>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1087\" height=\"1024\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/11\/remove-google-fonts-omgf.png\" alt=\"&#x5982;&#x4F55;&#x5728;WordPress&#x4E2D;&#x522A;&#x9664;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#x3001;&#x672C;&#x5730;&#x8A17;&#x7BA1;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#xFF08;3&#x7A2E;&#x7C21;&#x55AE;&#x65B9;&#x6CD5;&#xFF09;\" class=\"wp-image-507538\" title=\"-\"><\/figure>\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>\u7136\u5f8c\u9032\u5165detection settings\u6a19\u7c64\u9801\uff0c\u5982\u4e0b\u5716\u6240\u793a\u8a2d\u7f6e\uff0c\u5c07google fonts processing\u8a2d\u7f6e\u70baremove only\uff0c\u7136\u5f8c\u4fdd\u5b58\uff0c\u9019\u6a23\u5c31\u8a2d\u7f6e\u5b8c\u7562\u4e86\u3002<\/li>\n<\/ol>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1693\" height=\"1024\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/11\/image-49.png\" alt=\"&#x5982;&#x4F55;&#x5728;WordPress&#x4E2D;&#x522A;&#x9664;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#x3001;&#x672C;&#x5730;&#x8A17;&#x7BA1;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#xFF08;3&#x7A2E;&#x7C21;&#x55AE;&#x65B9;&#x6CD5;&#xFF09;\" class=\"wp-image-507539\" title=\"-\"><\/figure>\n\n<p>\u8a2d\u7f6e\u5b8c\u6210\u5f8c\uff0c\u8a18\u5f97\u7528\u4e0a\u6587\u63d0\u5230\u7684GTmetrix\u6aa2\u6e2c\u4e00\u4e0b\u662f\u5426\u79fb\u9664\u6210\u529f\uff0c\u4e5f\u8981\u6aa2\u67e5\u4e00\u4e0b\u4f60\u7684\u7db2\u7ad9\u6a23\u5f0f\u662f\u5426\u6709\u6a23\u5f0f\u7570\u5e38\uff08\u63db\u500b\u65b0\u700f\u89bd\u5668\u7528\u7121\u75d5\u6a21\u5f0f\u67e5\u770b\u7db2\u7ad9\uff09\u3002<\/p>\n\n<p>OMGF\u5916\u639b\u7a0b\u5f0f\u7684\u7981\u7528\u8c37\u6b4c\u5b57\u9ad4\u529f\u80fd\uff0c\u53ef\u80fd\u5728\u4e00\u4e9b\u4e3b\u984c\u4e0a\u4e0d\u80fd\u767c\u63ee\u4f5c\u7528\uff0c\u6b64\u6642\uff0c\u4f60\u53ef\u4ee5\u7528\u5230\u4e0b\u6587\u4e2d\u7684autoptimize\u4f86\u66ff\u4ee3\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u7528Autoptimize\u5916\u639b\u7a0b\u5f0f\u522a\u9664\u8c37\u6b4c\u5b57\u9ad4<\/h2>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"247\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/09\/remove-google-font-wordpress-1-3.png\" alt=\"remove google font wordpress\" class=\"wp-image-505683\" title=\"-\"><\/figure>\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/autoptimize\/\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">Autoptimize\u5916\u639b\u7a0b\u5f0f<\/a>\u662f\u4e00\u500b\u514d\u8cbb\u7684\u7db2\u7ad9\u4ee3\u78bc\u512a\u5316\u5916\u639b\u7a0b\u5f0f\uff0c\u53ef\u4ee5\u512a\u5316html\u3001js\u3001css\u6a94\uff0c\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\uff0c\u540c\u6642\uff0c\u5b83\u4e5f\u63d0\u4f9b\u4e86google \u5b57\u9ad4\u7684\u512a\u5316\u65b9\u6848\uff0c\u5305\u62ec\u7981\u7528\u8c37\u6b4c\u5b57\u9ad4\u3002 \u5b83\u7684\u6d3b\u8e8d\u5b89\u88dd\u6578\u91cf\u5df2\u7d93\u9054\u5230\u4e00\u767e\u842c+\uff0c\u8a55\u50f9\u4e5f\u67094.5\u661f\uff0c\u66f4\u65b0\u4e5f\u53ca\u6642\uff0c\u540c\u6a23\u662f\u4e00\u500b\u512a\u8cea\u5916\u639b\u7a0b\u5f0f\u3002<\/p>\n\n<ol class=\"wp-block-list\" id=\"block-0abf5a83-8b79-4251-86b8-9a2e2266c9d1\">\n<li>\u5b89\u88dd\u4e26\u555f\u7528Autoptimize\u5916\u639b\u7a0b\u5f0f<\/li>\n\n\n\n<li>\u9032\u5165WordPress\u5f8c\u53f0\u7684setting &#8211; autoptimize\u9801\u9762\u4e2d\uff0c\u5728\u984d\u5916\u6a19\u7c64\u9801\u4e2d\uff0c\u9078\u4e2d\u522a\u9664\u8c37\u6b4c\u5b57\u9ad4\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f60\u81f3\u5c11\u9700\u8981\u555f\u7528html\u3001js\u3001css\u3001\u5716\u50cf\u512a\u5316\u4efb\u4e00\u4e00\u9805\uff0c\u4e0d\u7136\u9019\u500b\u79fb\u9664\u8c37\u6b4c\u5b57\u9ad4\u529f\u80fd\u4e0d\u80fd\u767c\u63ee\u4f5c\u7528\u3002 \u5982\u679c\u4f60\u4f7f\u7528<a href=\"https:\/\/loyseo.com\/zh-hant\/tutorial\/wordpress-performance-speed\/how-to-use-wp-rocket\/\" class=\"rank-math-link\">WP Rocket<\/a>\u6216\u5176\u4ed6\u7db2\u7ad9\u512a\u5316\u5916\u639b\u7a0b\u5f0f\uff0c\u90a3\u9ebc\u7528OMGF\u5916\u639b\u7a0b\u5f0f\u66f4\u5408\u9069; \u5982\u679c\u4f60\u6b63\u597d\u7f3a\u5c11\u512a\u5316\u5916\u639b\u7a0b\u5f0f\uff0c\u90a3\u9ebc\u7528Autoptimize\u5916\u639b\u7a0b\u5f0f\u66f4\u5408\u9069\uff0c\u9806\u4fbf\u9084\u80fd\u7528\u4e0a\u512a\u5316\u7db2\u7ad9\u529f\u80fd\u4e86\u3002<\/li>\n<\/ol>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1026\" height=\"835\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/09\/remove-google-font-wordpress-1-4.png\" alt=\"remove google font wordpress\" class=\"wp-image-505684\" title=\"-\"><\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"astralocalfont\">\u4f7f\u7528Astra\u4e3b\u984c\u81ea\u5e36\u7684\u8c37\u6b4c\u5b57\u9ad4\u7576\u5730\u8a9e\u7cfb\u5316\u529f\u80fd<\/h2>\n\n<p>\u7576\u60a8\u5728\u7db2\u7ad9\u4e0a\u4f7f\u7528\u4efb\u4f55 Google \u5b57\u9ad4\u6642\uff0c\u6bcf\u6b21\u8f09\u5165\u9801\u9762\u6216\u5e16\u5b50\u6642\u90fd\u9700\u8981\u5411 Google \u767c\u9001\u8acb\u6c42\u4ee5\u7372\u53d6\u8a72\u5b57\u9ad4\u3002 \u9019\u53ef\u80fd\u6703\u640d\u5bb3\u60a8\u5728 Core Web Vitals \u5206\u6578\u4e2d\u7684 CLS \u5206\u6578\u3002 \u70ba\u4e86\u8aac\u660e\u6539\u5584\u9019\u4e00\u9ede\uff0c<a href=\"https:\/\/member.loyseo.cn\/course-category\/benefits\/\" data-type=\"product\" data-id=\"687\" target=\"_blank\" rel=\"noopener\">Astra\u4e3b\u984c<\/a>\u5167\u7f6e\u4e86\u81ea\u8a17\u7ba1\u7684Google\u5b57\u9ad4\u529f\u80fd\u3002 \u6b64\u529f\u80fd\u662f Astra\u4e3b\u984c 3.6.0 \u7248\u672c \u65b0\u589e\u7684\u529f\u80fd\u3002<\/p>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/09\/astra-theme-performance-load-google-fonts-local.png\" alt=\"&#x5982;&#x4F55;&#x5728;WordPress&#x4E2D;&#x522A;&#x9664;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#x3001;&#x672C;&#x5730;&#x8A17;&#x7BA1;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#xFF08;3&#x7A2E;&#x7C21;&#x55AE;&#x65B9;&#x6CD5;&#xFF09;\" class=\"wp-image-512562\" title=\"-\"><\/figure>\n\n<p>\u555f\u52d5\u9019\u500b\u529f\u80fd\u5c07\u53ea\u767c\u9001\u4e00\u500bGoogle\u5b57\u9ad4API\u8acb\u6c42\uff0c\u5b83\u5c07\u5f9eGoogle\u6536\u96c6\u6240\u6709\u7684\u5b57\u9ad4\u6578\u64da\u548c\u8cc7\u7522\u6a94\uff0c\u4e26\u5c07\u5b83\u5011\u5b58\u5132\u5728\u60a8\u7684\u4f3a\u670d\u5668\u4e0a\u3002 \u7136\u5f8c\uff0c\u5c0d\u65bc\u4efb\u4f55\u9032\u4e00\u6b65\u7684\u8acb\u6c42\uff0c\u8c37\u6b4c\u5b57\u9ad4\u5c07\u4f7f\u7528\u672c\u5730\u5b58\u5132\u7684\u6a94\u4f86\u8f09\u5165\u3002<\/p>\n\n<p>\u5982\u9700\u77ad\u89e3\u66f4\u591a\uff0c\u8acb<a href=\"https:\/\/wpastra.com\/docs\/performance-is-the-key\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u67e5\u770bAstra\u4e3b\u984c\u5b98\u65b9\u6587\u6a94<\/a>\u3002<\/p>\n\n<p>\u6ce8\u610f\uff1a\u76ee\u524d\u9019\u500b\u529f\u80fd\u5b58\u5728\u4e00\u500bBug\uff0c\u5982\u679c\u4f60\u5207\u63db\u7db2\u57df\u524d\u6c92\u6709\u6e05\u9664\u5b57\u9ad4\u7de9\u5b58\u4ee5\u53ca\u95dc\u9589\u8c37\u6b4c\u5b57\u9ad4\u7576\u5730\u8a9e\u7cfb\u5316\u529f\u80fd\uff0c\u90a3\u9ebc\u5207\u63db\u7db2\u57df\u5f8c\uff0c\u7121\u6cd5\u6e05\u9664\u9019\u4e9b\u5b57\u9ad4\u4e86\u3002<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"perfmatters\">\u4f7f\u7528Perfmatters\u5916\u639b\u7a0b\u5f0f\u4f86\u79fb\u9664\u6216\u7576\u5730\u8a9e\u7cfb\u5316\u8c37\u6b4c\u5b57\u9ad4<\/h2>\n\n<p>\u5728\u6df1\u7a76\u7db2\u7ad9\u901f\u5ea6\u512a\u5316\u7684\u904e\u7a0b\u4e2d\uff0c\u6211\u53c8\u7528\u4e86<a href=\"https:\/\/loyseo.com\/zh-hant\/plugins\/perfmatters\/\" target=\"_blank\" data-type=\"plugins\" data-id=\"529281\" rel=\"noreferrer noopener nofollow sponsored\">Perfmatters<\/a>\u9019\u6b3e\u4ed8\u8cbb\u5916\u639b\u7a0b\u5f0f\uff0820\u591a\u5200\u4e00\u5e74\uff0c\u4e5f\u4e0d\u8cb4\uff0c\u8cb7\u4e00\u500b\u7db2\u7ad9\u7684\u53ef\u4ee5\u7528\u65bc\u591a\u500b\u7db2\u7ad9\uff0c\u56e0\u70ba\u6388\u6b0a\u50c5\u7528\u65bc\u66f4\u65b0\u5916\u639b\u7a0b\u5f0f\uff0c\u800c\u66f4\u65b0\u5916\u639b\u7a0b\u5f0f\u4e5f\u53ef\u4ee5\u7528\u5916\u639b\u7a0b\u5f0f\u5b89\u88dd\u5305\u66f4\u65b0\u5927\u6cd5\uff09\uff0c\u6211\u7528\u5b83\u7684\u4e3b\u8981\u76ee\u7684\u662f\u79fb\u9664\u9801\u9762\u88e1\u6c92\u7528\u5230\u7684CSS\u3001JS\uff0c\u4f46\u4ed6\u540c\u6642\u4e5f\u63d0\u4f9b\u4e86\u8c37\u6b4c\u5b57\u9ad4\u7981\u7528\u8207\u672c\u5730\u5316\u7684\u529f\u80fd\uff0c\u7528\u6cd5\u4e5f\u5f88\u7c21\u55ae\uff0c\u5982\u4e0b\u5716\u6240\u793a\uff0c \u9ede\u64ca\u958b\u95dc\u6309\u9215\u5373\u53ef\u3002<\/p>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"938\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2021\/12\/perfmatters-disable-or-local-google-fonts.png\" alt=\"&#x5982;&#x4F55;&#x5728;WordPress&#x4E2D;&#x522A;&#x9664;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#x3001;&#x672C;&#x5730;&#x8A17;&#x7BA1;&#x8C37;&#x6B4C;&#x5B57;&#x9AD4;&#xFF08;3&#x7A2E;&#x7C21;&#x55AE;&#x65B9;&#x6CD5;&#xFF09;\" class=\"wp-image-513828\" title=\"-\"><\/figure>\n\n<p>\u7d50\u8a9e\uff1a\u5728\u9032\u884c<a class=\"rank-math-link\" href=\"\/\">\u5916\u8cbf\u5efa\u7ad9<\/a>\u6642\uff0c\u4e5f\u8acb\u76e1\u91cf\u5c11\u7528google\u5b57\u9ad4\uff0c\u5f9e\u7cfb\u7d71\u9ed8\u8a8d\u5b57\u9ad4\u88e1\u6311\u9078\u4e00\u4e9b\u5373\u53ef\uff0c\u5b57\u9ad4\u904e\u591a\u4e0d\u50c5\u8b93\u4eba\u773c\u82b1\u7e5a\u4e82\uff0c\u4e5f\u6703\u589e\u52a0\u7db2\u7ad9\u8f09\u5165\u6642\u9593\u3001\u964d\u4f4e\u7db2\u7ad9\u8f09\u5165\u901f\u5ea6\u3002<\/p>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a31\u591aWordPress\u4e3b\u984c\u90fd\u6703\u7528Google\u5b57\u9ad4\uff0c\u7136\u800c\uff0cGoogle\u5b57\u9ad4\u4e26\u4e0d\u5b58\u5132\u5728\u7db2\u7ad9\u672c\u5730\uff0c\u5b83\u662f\u4e00\u500b\u7b2c\u4e09\u65b9\u8cc7\u6e90\uff0c\u9019\u6703\u5f71\u97ff\u7db2\u7ad9\u7684\u8f09\u5165\u901f\u5ea6\uff0c\u8b93\u7db2\u7ad9\u8b8a\u6162\uff0c\u5c24\u5176\u7576\u4f60\u7684\u7db2\u7ad9\u9762\u5411\u7684\u662f\u570b\u5167\u4f7f\u7528\u8005\u6642\uff0c\u66f4\u9700\u8981\u7981\u7528Google\u5b57\u9ad4\u3002 \u8d77\u521d\uff0c\u6211\u7528Code snippets\u7684\u4ee3\u78bc\u6bb5\u4f86\u79fb\u9664\u4e3b\u984c\u7684\u8c37\u6b4c\u5b57\u9ad4\uff0c\u7136\u800c\u767c\u73fe\u4f9d\u820a\u6709\u6f0f\u7db2\u4e4b\u9b5a\uff0c\u6211\u53c8\u4e0d\u9858\u610f\u53bb\u7d30\u7a76\u4ee3\u78bc\uff0c\u6240\u4ee5\uff0c\u5c31\u627e\u5230\u4e86\u5169\u500b\u7c21\u55ae\u7684\u65b9\u6cd5\u4f86\u522a\u9664\u7db2\u7ad9\u4e2d\u7684\u8c37\u6b4c\u5b57\u9ad4\uff0c\u4ee5\u5229\u65bc\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\u3002  [&hellip;]<\/p>\n","protected":false},"featured_media":0,"parent":527728,"menu_order":306,"comment_status":"open","ping_status":"open","template":"","hf_cat_tutorial":[100527,100530],"class_list":["post-530279","tutorial","type-tutorial","status-publish","hentry"],"acf":[],"taxonomy_info":[],"featured_image_src_large":false,"author_info":[],"comment_info":0,"_links":{"self":[{"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/tutorial\/530279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/types\/tutorial"}],"replies":[{"embeddable":true,"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/comments?post=530279"}],"version-history":[{"count":0,"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/tutorial\/530279\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/tutorial\/527728"}],"wp:attachment":[{"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/media?parent=530279"}],"wp:term":[{"taxonomy":"hf_cat_tutorial","embeddable":true,"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/hf_cat_tutorial?post=530279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}