{"id":12167,"date":"2026-05-22T17:38:19","date_gmt":"2026-05-22T08:38:19","guid":{"rendered":"https:\/\/code-plus.jp\/gp\/?p=12167"},"modified":"2026-05-27T18:46:10","modified_gmt":"2026-05-27T09:46:10","slug":"wordpress-lcp-tbt-12167","status":"publish","type":"post","link":"https:\/\/code-plus.jp\/gp\/wordpress-lcp-tbt-12167\/","title":{"rendered":"WordPress\u306eLCP\u30fbTBT\u3092\u30d7\u30e9\u30b0\u30a4\u30f3\u306eJS\/CSS\u6574\u7406\u3067\u6539\u5584\u3057\u305f\u65bd\u7b56"},"content":{"rendered":"<!-- title: WordPress\u306eLCP\u30fbTBT\u3092\u30d7\u30e9\u30b0\u30a4\u30f3\u306eJS\/CSS\u6574\u7406\u3067\u5927\u5e45\u6539\u5584\u3057\u305f\u5b9f\u9332\r\ndescription: PageSpeed\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30b9\u30b3\u30a2\u304c17\u219257\u306b\u3001TBT\u304c5.1\u79d2\u2192170ms\u306b\u6539\u5584\u3057\u305f\u5b9f\u969b\u306e\u624b\u9806\u3092\u7d39\u4ecb\u3002Code Profiler\u30fbQuery Monitor\u3067\u539f\u56e0\u3092\u7279\u5b9a\u3057\u3001plugin-handles.php\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u306eJS\/CSS\u3092\u8a18\u4e8b\u30da\u30fc\u30b8\u304b\u3089\u9664\u53bb\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\r\ntags: WordPress, LCP\u6539\u5584, TBT\u6539\u5584, Core Web Vitals, PageSpeed Insights, \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584, \u30b5\u30a4\u30c8\u9ad8\u901f\u5316, plugin-handles.php, Code Profiler, Query Monitor -->\r\n\r\n<p>WordPress\u306ePageSpeed\u30b9\u30b3\u30a2\u304c<b class=\"bold\">17<\/b>\u3068\u3044\u3046\u304b\u306a\u308a\u53b3\u3057\u3044\u72b6\u614b\u304b\u3089\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306eJS\/CSS\u306e\u6574\u7406\u3060\u3051\u3067<b class=\"bold\">57<\/b>\u307e\u3067\u6539\u5584\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u7279\u306bTBT\uff08Total Blocking Time\uff09\u306f<b class=\"bold\">5.1\u79d2 \u2192 170ms<\/b>\u3001LCP\u306f<b class=\"bold\">6.45\u79d2 \u2192 2.3\u79d2<\/b>\u3068\u5927\u5e45\u306b\u6539\u5584\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u539f\u56e0\u306e\u7279\u5b9a\u304b\u3089\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u4fee\u6b63\u307e\u3067\u3092\u8a18\u9332\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<!-- \u2605\u76ee\u6b21\u30ea\u30b9\u30c8 -->\r\n<ul class=\"tocList mt-1r\" data-toc-id=\"js-tocBWGD\"><\/ul>\r\n<ins class=\"tocBtn is-fixed\" data-toc-id=\"js-tocBWGD\"><\/ins>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">\u307e\u305a\u73fe\u72b6\u3092\u30c4\u30fc\u30eb\u3067\u628a\u63e1\u3059\u308b<\/h2>\r\n<h3 class=\"fz-ml\">Code Profiler \u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u5225\u306e\u5b9f\u884c\u6642\u9593\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\r\n<p>\u300c\u9045\u3044\u300d\u3068\u308f\u304b\u3063\u3066\u3044\u3066\u3082\u3001\u3069\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u539f\u56e0\u304b\u308f\u304b\u3089\u306a\u3044\u3068\u624b\u306e\u6253\u3061\u3088\u3046\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u6700\u521d\u306b <b class=\"bold\">Code Profiler<\/b> \u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u30fb\u30c6\u30fc\u30de\u3054\u3068\u306e\u5b9f\u884c\u6642\u9593\u3092\u8a08\u6e2c\u3057\u307e\u3057\u305f\u3002<\/p>\r\n\r\n<picture class=\"bd-bounds mt-0.5r\">\r\n  <img decoding=\"async\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/code-profiler_26052212112.jpg?ver=20260527184610\" alt=\"\" \/>\r\n<\/picture>\r\n\r\n<p>\u7dcf\u5b9f\u884c\u6642\u9593 0.361\u79d2\u306e\u5185\u8a33\u3092\u898b\u308b\u3068\u3001\u4e0a\u4f4d\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\r\n<table class=\"table my-0.5r\">\r\n  <thead>\r\n    <tr class=\"rung\">\r\n      <th>\u30d7\u30e9\u30b0\u30a4\u30f3<\/th>\r\n      <td>\u5b9f\u884c\u6642\u9593<\/td>\r\n      <td>\u5168\u4f53\u6bd4<\/td>\r\n    <\/tr>\r\n  <\/thead>\r\n  <tbody>\r\n    <tr class=\"rung\">\r\n      <th>Kadence Security Basic<\/th>\r\n      <td>0.085\u79d2<\/td>\r\n      <td>24%<\/td>\r\n    <\/tr>\r\n    <tr class=\"rung\">\r\n      <th>Content Views<\/th>\r\n      <td>0.036\u79d2<\/td>\r\n      <td>10%<\/td>\r\n    <\/tr>\r\n    <tr class=\"rung\">\r\n      <th>LiteSpeed Cache<\/th>\r\n      <td>0.032\u79d2<\/td>\r\n      <td>9%<\/td>\r\n    <\/tr>\r\n    <tr class=\"rung\">\r\n      <th>EWWW Image Optimizer<\/th>\r\n      <td>0.025\u79d2<\/td>\r\n      <td>7%<\/td>\r\n    <\/tr>\r\n  <\/tbody>\r\n<\/table>\r\n<p><b class=\"bold\">Content Views\uff08Content Views Pro\uff09<\/b> \u304cPHP\u5b9f\u884c\u6642\u9593\u306e\u4e0a\u4f4d\u306b\u5165\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u8a18\u4e8b\u4e00\u89a7\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u4f7f\u7528\u3057\u3066\u3044\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u304c\u3001\u8a18\u4e8b\u30da\u30fc\u30b8\u3067\u3082JS\/CSS\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u554f\u984c\u3067\u3057\u305f\u3002<\/p>\r\n<h3 class=\"fz-ml\">Query Monitor \u3067\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\r\n<p>\u6b21\u306b <b class=\"bold\">Query Monitor<\/b> \u3067\u30da\u30fc\u30b8\u751f\u6210\u6642\u9593\u30fbDB\u30af\u30a8\u30ea\u30fb\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\r\n\r\n<picture class=\"bd-bounds mt-0.5r\">\r\n  <img decoding=\"async\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/query-monitor_2605221251.jpg?ver=20260527184610\" alt=\"\" \/>\r\n<\/picture>\r\n\r\n<table class=\"table my-0.5r\">\r\n  <thead>\r\n    <tr class=\"rung\">\r\n      <th>\u6307\u6a19<\/th>\r\n      <td>\u5024<\/td>\r\n      <td>\u8a55\u4fa1<\/td>\r\n    <\/tr>\r\n  <\/thead>\r\n  <tbody>\r\n    <tr class=\"rung\">\r\n      <th>Page Generation Time<\/th>\r\n      <td>0.1964\u79d2<\/td>\r\n      <td>\ud83d\udfe2 \u826f\u597d<\/td>\r\n    <\/tr>\r\n    <tr class=\"rung\">\r\n      <th>Peak Memory<\/th>\r\n      <td>18.0MB \/ 2,048MB<\/td>\r\n      <td>\ud83d\udfe2 \u826f\u597d<\/td>\r\n    <\/tr>\r\n    <tr class=\"rung\">\r\n      <th>DB Queries<\/th>\r\n      <td>92\u30af\u30a8\u30ea \/ 0.035\u79d2<\/td>\r\n      <td>\ud83d\udfe2 \u826f\u597d<\/td>\r\n    <\/tr>\r\n    <tr class=\"rung\">\r\n      <th>HTTP API Calls<\/th>\r\n      <td>None<\/td>\r\n      <td>\ud83d\udfe2 \u826f\u597d<\/td>\r\n    <\/tr>\r\n  <\/tbody>\r\n<\/table>\r\n<p>\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u51e6\u7406\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3064\u307e\u308a\u300c\u9045\u3055\u306e\u539f\u56e0\u306f\u30d5\u30ed\u30f3\u30c8\u5074\uff08JS\/CSS\uff09\u300d\u3068\u7d5e\u308a\u8fbc\u3081\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-ml\">plugin-handles.php \u3067\u30d5\u30ed\u30f3\u30c8\u306eJS\/CSS\u4e00\u89a7\u3092\u53ef\u8996\u5316\u3059\u308b<\/h3>\r\n<p>\u30b5\u30fc\u30d0\u30fc\u5074\u306f\u554f\u984c\u306a\u3044\u3068\u308f\u304b\u3063\u305f\u3068\u3053\u308d\u3067\u3001\u30d5\u30ed\u30f3\u30c8\u3067\u5b9f\u969b\u306b\u4f55\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u304b\u3092 <code>plugin-handles.php<\/code> \u3068\u3044\u3046\u30c7\u30d0\u30c3\u30b0\u7528\u30d5\u30a1\u30a4\u30eb\u3067\u53ef\u8996\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<p><code>?debug=true<\/code> \u3092URL\u306b\u4ed8\u4e0e\u3057\u305f\u6642\u3060\u3051\u3001\u753b\u9762\u53f3\u4e0b\u306b\u30ad\u30e5\u30fc\u3055\u308c\u3066\u3044\u308b\u30b9\u30bf\u30a4\u30eb\u30fb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\r\n\r\n<picture class=\"bd-bounds mt-0.5r\">\r\n  <img decoding=\"async\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/plugin-handles_2605221251.jpg?ver=20260527184610\" alt=\"\" \/>\r\n<\/picture>\r\n\r\n<p>\u8a18\u4e8b\u30da\u30fc\u30b8\u306b\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u305f\u4e0d\u8981\u306a\u30cf\u30f3\u30c9\u30eb\u306e\u4f8b\uff1a<\/p>\r\n<p><b class=\"bold\">Styles\uff08CSS\uff09<\/b><\/p>\r\n<ul style=\"list-style-type:bullet;\" class=\"my-0.5r\">\r\n  <li><code>pt-cv-public-style<\/code> \u2014 Content Views\uff08\u8a18\u4e8b\u30da\u30fc\u30b8\u4e0d\u8981\uff09<\/li>\r\n  <li><code>pt-cv-public-pro-style<\/code> \u2014 Content Views Pro\uff08\u8a18\u4e8b\u30da\u30fc\u30b8\u4e0d\u8981\uff09<\/li>\r\n  <li><code>classic-theme-styles<\/code> \u2014 \u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u4e0d\u4f7f\u7528\u306a\u306e\u3067\u4e0d\u8981<\/li>\r\n  <li><code>wp-block-styles-placeholder<\/code> \u2014 \u540c\u4e0a<\/li>\r\n  <li><code>wp-global-styles-placeholder<\/code> \u2014 \u540c\u4e0a<\/li>\r\n<\/ul>\r\n<p><b class=\"bold\">Scripts\uff08JS\uff09<\/b><\/p>\r\n<ul style=\"list-style-type:bullet;\" class=\"my-0.5r\">\r\n  <li><code>pt-cv-content-views-script<\/code> \u2014 Content Views\uff08\u8a18\u4e8b\u30da\u30fc\u30b8\u4e0d\u8981\uff09<\/li>\r\n  <li><code>pt-cv-public-pro-script<\/code> \u2014 Content Views Pro\uff08\u8a18\u4e8b\u30da\u30fc\u30b8\u4e0d\u8981\uff09<\/li>\r\n<\/ul>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">plugin-handles.php \u306e\u5b9f\u88c5\u3068\u9664\u53bb<\/h2>\r\n<p><code>plugin-handles.php<\/code> \u306f\u30c7\u30d0\u30c3\u30b0\u8868\u793a\u3068\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306eCSS\/JS\u7121\u52b9\u5316\u3092\u4e00\u30d5\u30a1\u30a4\u30eb\u3067\u7ba1\u7406\u3057\u3066\u3044\u307e\u3059\u3002<code>head.php<\/code> \u304b\u3089 <code>wp_head()<\/code> \u3088\u308a\u524d\u306b <code>include<\/code> \u3059\u308b\u3060\u3051\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\r\n<pre><code class=\"language-php\">&lt;!-- plugin-handles.php\uff08wp_head() \u3088\u308a\u524d\u306b include\uff09 --&gt;\r\n&lt;?php $_f = do_shortcode(&#39;&lsqb;root_themepath&rsqb;&#39;) . &#39;\/commons\/plugin-handles.php&#39;;\r\nif (file_exists($_f)) include $_f; ?&gt;\r\n<\/code><\/pre>\r\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u306f3\u3064\u306e\u30d6\u30ed\u30c3\u30af\u3067\u3059\u3002<\/p>\r\n<h3 class=\"fz-ml\">\u2460 \u30c7\u30d0\u30c3\u30b0\u5224\u5b9a<\/h3>\r\n<pre><code class=\"language-php\">$_zaratan_debug = isset($_GET&lsqb;&#39;debug&#39;&rsqb;) &amp;&amp;\r\n  in_array(strtolower((string) $_GET&lsqb;&#39;debug&#39;&rsqb;), &lsqb;&#39;true&#39;, &#39;1&#39;, &#39;&#39;&rsqb;, true);\r\n<\/code><\/pre>\r\n<p><code>?debug=true<\/code> \u307e\u305f\u306f <code>?debug=1<\/code> \u306e\u6642\u3060\u3051\u30c7\u30d0\u30c3\u30b0UI\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u672c\u756a\u30a2\u30af\u30bb\u30b9\u3067\u306f\u4f55\u3082\u51fa\u529b\u3057\u307e\u305b\u3093\u3002<\/p>\r\n<h3 class=\"fz-ml\">\u2461 \u30c7\u30d0\u30c3\u30b0\u6642\u306e\u30cf\u30f3\u30c9\u30eb\u4e00\u89a7\u8868\u793a<\/h3>\r\n<pre><code class=\"language-php\">if ($_zaratan_debug) {\r\n  add_action(&#39;wp_head&#39;, function () {\r\n    $wp_styles  = wp_styles();\r\n    $wp_scripts = wp_scripts();\r\n    \/\/ ... \u753b\u9762\u53f3\u4e0b\u306b\u30ad\u30e5\u30fc\u4e00\u89a7\u3092\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u8868\u793a\r\n  }, 999); \/\/ \u512a\u5148\u5ea6999\uff1awp_head() \u306e\u6700\u5f8c\u306b\u51fa\u529b\r\n}\r\n<\/code><\/pre>\r\n<p><code>wp_head()<\/code> \u3088\u308a\u5f8c\u306e\u30d5\u30c3\u30af\uff08\u512a\u5148\u5ea6999\uff09\u3067\u51fa\u529b\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u6642\u70b9\u3067\u767b\u9332\u6e08\u307f\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u3059\u3079\u3066\u62fe\u3048\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-ml\">\u2462 \u30d7\u30e9\u30b0\u30a4\u30f3CSS\/JS\u306e\u7121\u52b9\u5316<\/h3>\r\n<pre><code class=\"language-php\">add_action(&#39;wp_print_styles&#39;, function () {\r\n  \/\/ \u30b3\u30f3\u30bf\u30af\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u4ee5\u5916\u3067\u7121\u52b9\u5316\r\n  if (!is_page_template(&#39;templates\/page-contact.php&#39;)) {\r\n    wp_dequeue_style(&#39;wp-block-library&#39;);\r\n    wp_dequeue_style(&#39;contact-form-7&#39;);\r\n  }\r\n\r\n  \/\/ \u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u95a2\u9023\uff08\u30af\u30e9\u30b7\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u4f7f\u7528\u306e\u305f\u3081\u4e0d\u8981\uff09\r\n  wp_dequeue_style(&#39;classic-theme-styles&#39;);\r\n  wp_dequeue_style(&#39;wp-block-styles-placeholder&#39;);\r\n  wp_dequeue_style(&#39;wp-global-styles-placeholder&#39;);\r\n  wp_dequeue_style(&#39;global-styles&#39;);\r\n  wp_dequeue_style(&#39;core-block-supports-duotone&#39;);\r\n\r\n  \/\/ Content Views Pro\uff1a\u8a18\u4e8b\u30da\u30fc\u30b8\u3067\u306f\u4e0d\u8981\r\n  if (is_single()) {\r\n    wp_dequeue_style(&#39;pt-cv-public-style&#39;);\r\n    wp_dequeue_style(&#39;pt-cv-public-pro-style&#39;);\r\n  }\r\n}, 100);\r\n\r\nadd_action(&#39;wp_print_scripts&#39;, function () {\r\n  if (!is_page_template(&#39;templates\/page-contact.php&#39;)) {\r\n    wp_deregister_script(&#39;contact-form-7&#39;);\r\n  }\r\n\r\n  if (is_single()) {\r\n    wp_dequeue_script(&#39;pt-cv-content-views-script&#39;);\r\n    wp_dequeue_script(&#39;pt-cv-public-pro-script&#39;);\r\n  }\r\n}, 100);\r\n<\/code><\/pre>\r\n<p><b class=\"bold\">\u30dd\u30a4\u30f3\u30c8\uff1a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5224\u5b9a\u3092\u4f7f\u3046<\/b><\/p>\r\n<p><code>!is_page(&lsqb;&#39;contact&#39;, &#39;request&#39;, ...&rsqb;)<\/code> \u306e\u3088\u3046\u306a\u30b9\u30e9\u30c3\u30b0\u5217\u6319\u3067\u306a\u304f\u3001<code>!is_page_template(&#39;templates\/page-contact.php&#39;)<\/code> \u3067\u5224\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u30b9\u30e9\u30c3\u30b0\u304c\u5897\u3048\u308b\u305f\u3073\u306b\u4fee\u6b63\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3092\u907f\u3051\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\r\n<h3 class=\"fz-ml\">\u2463 specific-stylesandscripts.php \u3067\u30da\u30fc\u30b8\u56fa\u6709\u306eCSS\/JS\u3092\u7ba1\u7406<\/h3>\r\n<p>Contact Form 7 \u306e ajaxzip3 \u306e\u3088\u3046\u306b\u3001\u7279\u5b9a\u30da\u30fc\u30b8\u306b\u3057\u304b\u5fc5\u8981\u306a\u3044JS\/CSS\u306f <code>specific-stylesandscripts.php<\/code> \u306b\u96c6\u7d04\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<pre><code class=\"language-php\">&lt;?php if (is_page_template(&#39;templates\/page-contact.php&#39;)) : ?&gt;\r\n  &lt;link rel=&quot;stylesheet&quot; href=&quot;...fm-contact4fnR.css&quot; \/&gt;\r\n  &lt;script src=&quot;...jquery-ui.min.js&quot;&gt;&lt;\/script&gt;\r\n  &lt;script src=&quot;...ajaxzip3.js&quot;&gt;&lt;\/script&gt;\r\n&lt;?php endif; ?&gt;\r\n<\/code><\/pre>\r\n<p><code>head.php<\/code> \u304b\u3089\u306f\u3053\u306e1\u884c\u3060\u3051\u3067\u8aad\u307f\u8fbc\u3081\u307e\u3059\u3002<\/p>\r\n<pre><code class=\"language-php\">&lt;?php $_f = get_theme_file_path() . &#39;\/js\/specific-stylesandscripts.php&#39;;\r\nif (file_exists($_f)) include $_f; ?&gt;\r\n<\/code><\/pre>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">\u5bfe\u5fdc\u5f8c\u306e\u5909\u5316<\/h2>\r\n\r\n<picture class=\"bd-bounds mt-0.5r\">\r\n  <img decoding=\"async\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/plugin-handles_2605221313.jpg?ver=20260527184610\" alt=\"\" \/>\r\n<\/picture>\r\n\r\n\r\n<p>\u9664\u53bb\u5f8c\u306eQueuing\u4e00\u89a7\u3067\u3059\u3002Content Views\u306eJS\/CSS\u3068\u3001\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u7cfb\u306e\u30cf\u30f3\u30c9\u30eb\u304c\u6d88\u3048\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<p>PageSpeed Insights\u306e\u6570\u5024\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6539\u5584\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<table class=\"table my-0.5r\">\r\n  <thead>\r\n    <tr class=\"rung\">\r\n      <th>\u6307\u6a19<\/th>\r\n      <td>\u4f5c\u696d\u524d<\/td>\r\n      <td>\u4f5c\u696d\u5f8c<\/td>\r\n      <td>\u5909\u5316<\/td>\r\n    <\/tr>\r\n  <\/thead>\r\n  <tbody>\r\n    <tr class=\"rung\">\r\n      <th>Performance\uff08\u30e2\u30d0\u30a4\u30eb\uff09<\/th>\r\n      <td>17<\/td>\r\n      <td><b class=\"bold\">57<\/b><\/td>\r\n      <td>+40<\/td>\r\n    <\/tr>\r\n    <tr class=\"rung\">\r\n      <th>LCP<\/th>\r\n      <td>6.45\u79d2<\/td>\r\n      <td><b class=\"bold\">2.3\u79d2<\/b><\/td>\r\n      <td>\u2705 \u76ee\u6a19\u5024\u5185<\/td>\r\n    <\/tr>\r\n    <tr class=\"rung\">\r\n      <th>TBT<\/th>\r\n      <td>5.1\u79d2<\/td>\r\n      <td><b class=\"bold\">170ms<\/b><\/td>\r\n      <td>\u2705 \u5927\u5e45\u6539\u5584<\/td>\r\n    <\/tr>\r\n  <\/tbody>\r\n<\/table>\r\n<p>TBT\u306e\u6539\u5584\u304c\u7279\u306b\u5927\u304d\u304f\u3001<b class=\"bold\">5,100ms \u2192 170ms\uff0897%\u524a\u6e1b\uff09<\/b>\u3067\u3059\u3002Content Views Pro\u306eJS\u304c\u6bce\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u305f\u3053\u3068\u304cTBT\u306e\u4e3b\u306a\u539f\u56e0\u3060\u3063\u305f\u3068\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\r\n\r\n<hr class=\"separator mx-auto mt-3r\" \/>\r\n\r\n<h2 class=\"fz-xl\">\u307e\u3068\u3081<\/h2>\r\n<p>\u4eca\u56de\u306e\u6539\u5584\u3092\u307e\u3068\u3081\u308b\u3068\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\r\n<p><b class=\"bold\">\u539f\u56e0\u306e\u7279\u5b9a\u306b\u4f7f\u3063\u305f\u30c4\u30fc\u30eb<\/b>\u306f Code Profiler\uff08\u30d7\u30e9\u30b0\u30a4\u30f3\u5225PHP\u5b9f\u884c\u6642\u9593\uff09\u3068 Query Monitor\uff08DB\u30fb\u30ad\u30e3\u30c3\u30b7\u30e5\u30fb\u30b5\u30fc\u30d0\u30fc\u5168\u822c\uff09\u3001plugin-handles.php\uff08\u30d5\u30ed\u30f3\u30c8\u306eJS\/CSS\u4e00\u89a7\uff09\u306e3\u3064\u3067\u3059\u3002<\/p>\r\n<p><b class=\"bold\">\u5b9f\u969b\u306b\u3084\u3063\u305f\u3053\u3068<\/b>\u306f\u4e3b\u306b3\u3064\u3067\u3059\u3002\u307e\u305a <code>is_single()<\/code> \u3067\u8a18\u4e8b\u30da\u30fc\u30b8\u3092\u5224\u5b9a\u3057\u3001Content Views Pro\u306eJS\/CSS 4\u30d5\u30a1\u30a4\u30eb\u3092\u9664\u53bb\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u3063\u3066\u3044\u306a\u3044\u305f\u3081 <code>classic-theme-styles<\/code> \u3084 <code>wp-block-styles-placeholder<\/code> \u306a\u3069\u306e\u7a7a\u30cf\u30f3\u30c9\u30eb\u3092\u9664\u53bb\u3057\u307e\u3057\u305f\u3002\u6700\u5f8c\u306b\u30b3\u30f3\u30bf\u30af\u30c8\u30d5\u30a9\u30fc\u30e0\u5c02\u7528\u306e ajaxzip3 \u306a\u3069\u306f <code>specific-stylesandscripts.php<\/code> \u306b\u79fb\u52d5\u3057\u3001\u305d\u306e\u30da\u30fc\u30b8\u306e\u307f\u3067\u8aad\u307f\u8fbc\u3080\u5f62\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u306eJS\/CSS\u6574\u7406\u306f\u300c\u3069\u306e\u30da\u30fc\u30b8\u3067\u4f55\u304c\u5fc5\u8981\u304b\u300d\u3092\u628a\u63e1\u3059\u308b\u3060\u3051\u3067\u53d6\u308a\u7d44\u3081\u308b\u6539\u5584\u3067\u3059\u3002\u7279\u306b Content Views \u306e\u3088\u3046\u306a\u8a18\u4e8b\u4e00\u89a7\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3001\u4e00\u89a7\u30da\u30fc\u30b8\u306b\u3057\u304b\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u306b\u5168\u30da\u30fc\u30b8\u3067\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3044\u305f\u3081\u3001\u78ba\u8a8d\u3057\u3066\u307f\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"WordPress\u306ePageSpeed\u30b9\u30b3\u30a2\u304c17\u3068\u3044\u3046\u304b\u306a\u308a\u53b3\u3057\u3044\u72b6\u614b\u304b\u3089\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306eJS\/CSS\u306e\u6574\u7406\u3060\u3051\u306757\u307e\u3067\u6539\u5584\u3067\u304d\u307e\u3057\u305f\u3002 \u7279\u306bTBT\uff08Total Blocking Time\uff09\u306f5.1\u79d2 \u2192 170ms\u3001[...]","protected":false},"author":1,"featured_media":12170,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":"0"},"categories":[13],"tags":[919,914,915,916,917,918,472,409,280,102],"class_list":["post-12167","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress","tag-query-monitor","tag-lcp","tag-tbt","tag-916","tag-plugin-handles-php","tag-code-profiler","tag-pagespeed-insights","tag-core-web-vitals","tag-280","tag-wordpress"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/12167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/comments?post=12167"}],"version-history":[{"count":6,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/12167\/revisions"}],"predecessor-version":[{"id":12263,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/12167\/revisions\/12263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media\/12170"}],"wp:attachment":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media?parent=12167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/categories?post=12167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/tags?post=12167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}