{"id":36212,"date":"2022-08-30T17:59:51","date_gmt":"2022-08-30T08:59:51","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=36212&#038;preview=true&#038;preview_id=36212"},"modified":"2023-08-25T16:55:33","modified_gmt":"2023-08-25T07:55:33","slug":"performance-api","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/","title":{"rendered":"Performance API\u5165\u9580"},"content":{"rendered":"<p><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Performance_API\">Performance API<\/a>\u306f\u3001\u5b9f\u969b\u306e\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3068\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u4e21\u65b9\u306e\u30b3\u30fc\u30c9\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u7279\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>user timing<\/strong>\uff1a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-javascript\/\">JavaScript\u95a2\u6570<\/a>\u306e\u72ec\u81ea\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8a08\u6e2c<\/li>\n<li><strong>paint timing<\/strong>\uff1a\u30d6\u30e9\u30a6\u30b6\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306e\u30e1\u30c8\u30ea\u30af\u30b9<\/li>\n<li><strong>resource timing<\/strong>\uff1a\u30a2\u30bb\u30c3\u30c8\u3068Ajax\u30b3\u30fc\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/li>\n<li><strong>navigation timing<\/strong>\uff1a\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3001DNS\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u3001DOM\u30ec\u30c7\u30a3\u30cd\u30b9\u7b49\u3092\u542b\u3080\u30da\u30fc\u30b8\u8aad\u307f\u8fbc\u307f\u306e\u30e1\u30c8\u30ea\u30af\u30b9<\/li>\n<\/ul>\n<p>Performance API\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8a55\u4fa1\u306b\u95a2\u3059\u308b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5178\u578b\u7684\u306a\u554f\u984c\u306b\u5bfe\u51e6\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u958b\u767a\u8005\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8\u6642\u306b\u3001\u3057\u3070\u3057\u3070\u9ad8\u901f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3055\u308c\u305f\u30cf\u30a4\u30a8\u30f3\u30c9PC\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002DevTools\u3092\u5229\u7528\u3057\u3066\u4f4e\u901f\u306e\u30c7\u30d0\u30a4\u30b9\u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3067\u304d\u307e\u3059\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u591a\u304f\u304c\u76f4\u9762\u3059\u308b\u73fe\u5b9f\u306e\u554f\u984c\u3001\u305f\u3068\u3048\u3070\u300c2\u5e74\u524d\u306e\u30e2\u30d0\u30a4\u30eb\u6a5f\u5668\u3067\u7a7a\u6e2f\u306eWiFi\u306b\u63a5\u7d9a\u3059\u308b\u300d\u306a\u3069\u3092\u60f3\u5b9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/li>\n<li><a href=\"https:\/\/kinsta.com\/blog\/how-to-use-google-analytics\/\">Google<\/a><a href=\"https:\/\/kinsta.com\/blog\/how-to-use-google-analytics\/\">\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9<\/a>\u306a\u3069\u306e\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30b5\u30fc\u30d3\u30b9\u306f\u3057\u3070\u3057\u3070\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3001\u8aa4\u3063\u305f\u7d50\u679c\u3068\u4eee\u5b9a\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u56fd\u306b\u3088\u3063\u3066\u306f\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u306b\u95a2\u9023\u3059\u308b\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u3082\u3002<\/li>\n<li>Performance API\u306f\u3001\u69d8\u3005\u306a\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u3001<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Date\">Date()<\/a><\/code>\u306a\u3069\u306e\u65b9\u5f0f\u3088\u308a\u3082\u6b63\u78ba\u306b\u6e2c\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n<p>\u4ee5\u4e0b\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Performance API\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u306a\u304a\u3001<a href=\"https:\/\/kinsta.com\/jp\/topics\/javascript-tutorials\/\">JavaScript<\/a>\u3068<a href=\"https:\/\/kinsta.com\/jp\/blog\/website-speed-test\/\">\u30da\u30fc\u30b8\u8aad\u307f\u8fbc\u307f\u306e\u30e1\u30c8\u30ea\u30af\u30b9<\/a>\u306b\u3064\u3044\u3066\u3042\u308b\u7a0b\u5ea6\u306e\u77e5\u8b58\u3092\u304a\u6301\u3061\u3067\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u3054\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u304c\u3042\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>Performance API\u306e\u5229\u7528\u53ef\u80fd\u6027<\/h2>\n<p>\u307b\u3068\u3093\u3069\u306e\u30d6\u30e9\u30a6\u30b6\u306f\u3001Performance API\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u3053\u308c\u306b\u306fIE 10\u3068IE 11\u3082\u542b\u307e\u308c\u3001IE 9\u3067\u3055\u3048\u9650\u5b9a\u7684\u3067\u3059\u304c\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002Performance API\u306e\u6709\u7121\u306f\u3001\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>if ('performance' in window) {\n  \/\/ use Performance API\n}<\/code><\/pre>\n<p>Performance API\u306f\u5b8c\u5168\u306bPolyfill\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30b5\u30dd\u30fc\u30c8\u3057\u306a\u3044\u30d6\u30e9\u30a6\u30b6\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u300190%\u306e\u30e6\u30fc\u30b6\u30fc\u304cInternet Explorer 8\u3067\u5feb\u9069\u306b\u30d6\u30e9\u30a6\u30b8\u30f3\u30b0\u3057\u3066\u3044\u308b\u74b0\u5883\u3067\u306f\u3001\u308f\u305a\u304b10%\u306e\u30e6\u30fc\u30b6\u30fc\u3057\u304b\u9ad8\u6a5f\u80fd\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6e2c\u5b9a\u3067\u304d\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Performance API\u306f<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Web_Workers_API\/Using_web_workers\">Web Worker<\/a>\u3067\u4f7f\u7528\u3067\u304d\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u64cd\u4f5c\u3092\u505c\u6b62\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u8907\u96d1\u306a\u8a08\u7b97\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6a19\u6e96\u306e<a href=\"https:\/\/nodejs.org\/dist\/latest\/docs\/api\/perf_hooks.html\">perf_hooks\u30e2\u30b8\u30e5\u30fc\u30eb<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306eNode.js\u5185\u3067\u3001Performance API\u306e\u307b\u3068\u3093\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>\/\/ Node.js performance\nimport { performance } from 'node:perf_hooks';\n\/\/ or in Common JS: const { performance } = require('node:perf_hooks');\n\nconsole.log( performance.now() );<\/code><\/pre>\n<p>Deno\u3067\u3082\u6a19\u6e96<a href=\"https:\/\/doc.deno.land\/deno\/stable\/~\/Performance\">Performance API<\/a>\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>\/\/ Deno performance\nconsole.log( performance.now() );<\/code><\/pre>\n<p>\u9ad8\u7cbe\u5ea6\u306e\u6642\u9593\u8a08\u6e2c\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001<code>--allow-hrtime<\/code>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code>deno run --allow-hrtime index.js<\/code><\/pre>\n<p>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u3001\u8ca0\u8377\u3001CPU\u3001RAM\u3001\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/disk-space-wordpress-hosting\/\">\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306e\u5236\u9650<\/a>\u306b\u4f9d\u5b58\u3059\u308b\u305f\u3081\u3001\u901a\u5e38\u3001\u8a55\u4fa1\u3082\u7ba1\u7406\u3082\u7c21\u5358\u3067\u3059\u3002\u30b3\u30fc\u30c9\u3092\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u3088\u308a\u3082\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3084\u3001<a href=\"https:\/\/pm2.keymetrics.io\/\">PM2<\/a>\u3001<a href=\"https:\/\/nodejs.org\/api\/cluster.html\">\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0<\/a>\u3001<a href=\"https:\/\/kubernetes.io\/\">Kubernetes<\/a>\u306a\u3069\u306e\u30d7\u30ed\u30bb\u30b9\u7ba1\u7406\u306e\u65b9\u304c\u52b9\u679c\u7684\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u7406\u7531\u304b\u3089\u3001\u6b21\u306e\u7ae0\u3067\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u7126\u70b9\u3092\u5f53\u3066\u307e\u3059\u3002<\/p>\n<h2>\u72ec\u81ea\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6e2c\u5b9a<\/h2>\n<p>Performance API\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u95a2\u6570\u306e\u5b9f\u884c\u901f\u5ea6\u3092\u8a08\u6e2c\u3067\u304d\u307e\u3059\u3002\u904e\u53bb\u306b<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Date\">Date()<\/a><\/code>\u3092\u4f7f\u7528\u3057\u3066\u6642\u9593\u3092\u8a08\u6e2c\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3001\u3042\u308b\u3044\u306f\u898b\u305f\u3053\u3068\u304c\u3042\u308b\u65b9\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre><code>const timeStart = new Date();\nrunMyCode();\nconst timeTaken = new Date() - timeStart;\n\nconsole.log(`runMyCode() executed in ${ timeTaken }ms`);<\/code><\/pre>\n<p>Performance API\u306b\u306f\u3001\u5927\u304d\u304f2\u3064\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u7cbe\u5ea6<\/strong>\uff1a<code>Date()<\/code>\u306f\u3001\u30df\u30ea\u79d2\u5358\u4f4d\u3067\u8a08\u6e2c\u3059\u308b\u304c\u3001Performance API\u306f\u3001\u30df\u30ea\u79d2\u4ee5\u4e0b\u3067\u8a08\u6e2c\u53ef\u80fd\uff08\u30d6\u30e9\u30a6\u30b6\u306b\u3088\u308b\uff09\u3002<\/li>\n<li><strong>\u4fe1\u983c\u6027<\/strong>\uff1a\u30e6\u30fc\u30b6\u30fc\u3084OS\u304c\u30b7\u30b9\u30c6\u30e0\u6642\u523b\u3092\u5909\u66f4\u3067\u304d\u308b\u305f\u3081\u3001<code>Date()<\/code>\u30d9\u30fc\u30b9\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u306f\u5e38\u306b\u6b63\u78ba\u3068\u306f\u9650\u3089\u306a\u3044\u3002\u6642\u8a08\u304c\u9032\u3080\u3068\u95a2\u6570\u304c\u7279\u306b\u9045\u304f\u898b\u3048\u308b\u3002<\/li>\n<\/ol>\n<p><code>Date()<\/code>\u306b\u76f8\u5f53\u3059\u308b\u95a2\u6570\u304c<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Performance\/now\">performance.now()<\/a><\/code>\u3067\u3059\u3002\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u958b\u59cb\u6642\uff08\u30da\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u6642\uff09\u306b0\u306b\u8a2d\u5b9a\u3055\u308c\u3001\u9ad8\u7cbe\u5ea6\u306e\u6642\u523b\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code>const timeStart = performance.now();\nrunMyCode();\nconst timeTaken = performance.now() - timeStart;\n\nconsole.log(`runMyCode() executed in ${ timeTaken }ms`);<\/code><\/pre>\n<p>\u975e\u6a19\u6e96\u306e<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Performance\/timeOrigin\">performance.timeOrigin<\/a><\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3082\u30011970\u5e741\u67081\u65e5\u304b\u3089\u306e\u6642\u9593\u3092\u8fd4\u3057\u307e\u3059\u304c\u3001IE\u3068Deno\u3067\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u305f<code>performance.now<\/code>()\u3082\u3001\u6570\u56de\u4ee5\u4e0a\u306e\u8a08\u6e2c\u3092\u884c\u3046\u5834\u5408\u306b\u306f\u3001\u5b9f\u7528\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002Performance API\u3067\u306f\u30d0\u30c3\u30d5\u30a1\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u3066\u3001<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Performance\/mark\">performance.mark()<\/a><\/code>\u306b\u30e9\u30d9\u30eb\u540d\u3092\u6e21\u3059\u3053\u3068\u3067\u3001\u5f8c\u306e\u89e3\u6790\u7528\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u8a18\u9332\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>performance.mark('start:app');\nperformance.mark('start:init');\n\ninit(); \/\/ run initialization functions\n\nperformance.mark('end:init');\nperformance.mark('start:funcX');\n\nfuncX(); \/\/ run another function\n\nperformance.mark('end:funcX');\nperformance.mark('end:app');<\/code><\/pre>\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u5185\u306e\u3059\u3079\u3066\u306e\u30de\u30fc\u30af\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u62bd\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>const mark = performance.getEntriesByType('mark');<\/code><\/pre>\n<p>\u4ee5\u4e0b\u304c\u7d50\u679c\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code>[\n\n  {\n    detail: null\n    duration: 0\n    entryType: \"mark\"\n    name: \"start:app\"\n    startTime: 1000\n  },\n  {\n    detail: null\n    duration: 0\n    entryType: \"mark\"\n    name: \"start:init\"\n    startTime: 1001\n  },\n  {\n    detail: null\n    duration: 0\n    entryType: \"mark\"\n    name: \"end:init\"\n    startTime: 1100\n  },\n...\n]<\/code><\/pre>\n<p><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Performance\/measure\"><code>performance.measure()<\/code><\/a>\u30e1\u30bd\u30c3\u30c9\u306f\u30012\u3064\u306e\u30de\u30fc\u30af\u9593\u306e\u6642\u9593\u3092\u8a08\u7b97\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u306f\u3001\u30e1\u30b8\u30e3\u30fc\u306e\u540d\u524d\u3001\u958b\u59cb\u30de\u30fc\u30af\u540d\uff08null\u306a\u3089\u3001\u30da\u30fc\u30b8\u8aad\u307f\u8fbc\u307f\u6642\u304b\u3089\u306e\u6e2c\u5b9a\uff09\u3001\u7d42\u4e86\u30de\u30fc\u30af\u540d\uff08null\u306a\u3089\u3001\u73fe\u5728\u6642\u523b\u307e\u3067\u306e\u6e2c\u5b9a\uff09\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n<pre><code>performance.measure('init', 'start:init', 'end:init');<\/code><\/pre>\n<p>\u8a08\u7b97\u3055\u308c\u305f\u6642\u9593\u3068\u3068\u3082\u306b\u3001\u200b<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/PerformanceMeasure\">PerformanceMeasure\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/a>\u304c\u30d0\u30c3\u30d5\u30a1\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u3059\u3079\u3066\u306e\u30e1\u30b8\u30e3\u30fc\u306e\u914d\u5217\u3092\u8981\u6c42\u3059\u308b\u304b\u3001<\/p>\n<pre><code>const measure = performance.getEntriesByType('measure');<\/code><\/pre>\n<p>\u307e\u305f\u306f\u3001\u30e1\u30b8\u30e3\u30fc\u540d\u3067\u8981\u6c42\u3057\u307e\u3059\u3002<\/p>\n<pre><code>performance.getEntriesByName('init');<\/code><\/pre>\n<p>\u4ee5\u4e0b\u304c\u7d50\u679c\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code>[\n  {\n    detail: null\n    duration: 99\n    entryType: \"measure\"\n    name: \"init\"\n    startTime: 1001\n  }\n]<\/code><\/pre>\n<h3>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u306e\u4f7f\u7528<\/h3>\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u306f\u3001\u30de\u30fc\u30af\u3084\u30e1\u30b8\u30e3\u30fc\u3060\u3051\u3067\u306a\u304f\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3001\u30ea\u30bd\u30fc\u30b9\u3001\u30da\u30a4\u30f3\u30c8\u306e\u30bf\u30a4\u30df\u30f3\u30b0\uff08\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\u3057\u307e\u3059\uff09\u306e\u81ea\u52d5\u7684\u306a\u8a18\u9332\u306b\u3082\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3001\u30d0\u30c3\u30d5\u30a1\u5185\u306e\u3059\u3079\u3066\u306e\u30a8\u30f3\u30c8\u30ea\u306e\u914d\u5217\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>performance.getEntries();<\/code><\/pre>\n<p>\u307b\u3068\u3093\u3069\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u6700\u5927150\u306e\u30ea\u30bd\u30fc\u30b9\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4fdd\u5b58\u3067\u304d\u308b\u30d0\u30c3\u30d5\u30a1\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5927\u4f53\u306e\u691c\u8a3c\u306f\u3053\u308c\u3067\u5341\u5206\u3067\u3059\u304c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d0\u30c3\u30d5\u30a1\u306e\u4e0a\u9650\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>\/\/ record 500 metrics\nperformance.setResourceTimingBufferSize(500);<\/code><\/pre>\n<p>\u30de\u30fc\u30af\u306f\u540d\u524d\u3067\u30af\u30ea\u30a2\u3059\u308b\u304b\u3001\u7a7a\u306e\u5024\u3092\u6307\u5b9a\u3057\u3066\u3059\u3079\u3066\u306e\u30de\u30fc\u30af\u3092\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002<\/p>\n<pre><code>performance.clearMarks('start:init');<\/code><\/pre>\n<p>\u540c\u69d8\u306b\u3001\u30e1\u30b8\u30e3\u30fc\u3082\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u30af\u30ea\u30a2\u3059\u308b\u304b\u3001\u7a7a\u306e\u5024\u3092\u6307\u5b9a\u3057\u3066\u3059\u3079\u3066\u306e\u30e1\u30b8\u30e3\u30fc\u3092\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>performance.clearMeasures();<\/code><\/pre>\n<h3>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u306e\u5909\u5316\u306e\u76e3\u8996<\/h3>\n<p><strong><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/PerformanceObserver\">PerformanceObserver<\/a><\/strong>\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u306e\u5909\u5316\u3092\u76e3\u8996\u3057\u3001\u7279\u5b9a\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u95a2\u6570\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002DOM\u306e\u66f4\u65b0\u306b\u5fdc\u7b54\u3059\u308b<strong><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/MutationObserver\">MutationObserver<\/a><\/strong>\u3084\u3001\u8981\u7d20\u306e\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u3078\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u691c\u51fa\u3059\u308b<strong><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/IntersectionObserver\">IntersectionObserver<\/a><\/strong>\u3092\u4f7f\u7528\u3057\u305f\u3053\u3068\u304c\u3042\u308c\u3070\u3001\u3053\u306e\u69cb\u6587\u306b\u306f\u99b4\u67d3\u307f\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>2\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6301\u3064\u30aa\u30d6\u30b6\u30fc\u30d0\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u691c\u51fa\u3055\u308c\u305f\u30aa\u30d6\u30b6\u30fc\u30d0\u30a8\u30f3\u30c8\u30ea\u306e\u914d\u5217\u3002<\/li>\n<li>\u30aa\u30d6\u30b6\u30fc\u30d0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3002\u5fc5\u8981\u3067\u3042\u308c\u3070\u3001<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/PerformanceObserver\/disconnect\">disconnect()<\/a><\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u30aa\u30d6\u30b6\u30fc\u30d0\u3092\u505c\u6b62\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3002<\/li>\n<\/ol>\n<pre><code>function performanceCallback(list, observer) {\n\n  list.getEntries().forEach(entry =&gt; {\n    console.log(`name    : ${ entry.name }`);\n    console.log(`type    : ${ entry.type }`);\n    console.log(`start   : ${ entry.startTime }`);\n    console.log(`duration: ${ entry.duration }`);\n  });\n\n}<\/code><\/pre>\n<p>\u65b0\u3057\u3044PerformanceObserver\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3053\u306e\u95a2\u6570\u3092\u6e21\u3057\u3001<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/PerformanceObserver\/observe\">observe()<\/a><\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u3001\u76e3\u8996\u3059\u308b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u306eentryTypes\u306e\u914d\u5217\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n<pre><code>let observer = new PerformanceObserver( performanceCallback );\nobserver.observe({ entryTypes: ['mark', 'measure'] });<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u65b0\u3057\u3044\u30de\u30fc\u30af\u3084\u30e1\u30b8\u30e3\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001<code>performanceCallback()<\/code>\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30ed\u30b0\u306b\u51fa\u529b\u3059\u308b\u3060\u3051\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3084\u8ffd\u52a0\u306e\u8a08\u7b97\u306e\u30c8\u30ea\u30ac\u30fc\u3068\u3057\u3066\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u63cf\u753b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6e2c\u5b9a<\/h3>\n<p>Paint Timing API\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306eJavaScript\u3067\u306e\u307f\u5229\u7528\u53ef\u80fd\u3067\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/core-web-vitals\/\">\u30b3\u30a2\u30a6\u30a7\u30d6\u30d0\u30a4\u30bf\u30eb<\/a>\u306b\u3068\u3063\u3066\u91cd\u8981\u306a2\u3064\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u81ea\u52d5\u7684\u306b\u8a18\u9332\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>first-paint<\/strong>\uff1a\u30d6\u30e9\u30a6\u30b6\u304c\u30da\u30fc\u30b8\u306e\u63cf\u753b\u3092\u958b\u59cb\u3057\u305f\u3002<\/li>\n<li><strong>first-contentful-paint<\/strong>\uff1a\u30d6\u30e9\u30a6\u30b6\u304cDOM\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u6700\u521d\u306e\u91cd\u8981\u306a\u9805\u76ee\u3001\u4f8b\u3048\u3070\u3001\u898b\u51fa\u3057\u3084\u753b\u50cf\u3092\u63cf\u753b\u3057\u305f\u3002<\/li>\n<\/ol>\n<p>\u30e1\u30c8\u30ea\u30af\u30b9\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u304b\u3089\u914d\u5217\u306b\u62bd\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>const paintTimes = performance.getEntriesByType('paint');<\/code><\/pre>\n<p>\u5024\u304c\u9069\u5207\u306b\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u3001\u30da\u30fc\u30b8\u304c\u5b8c\u5168\u306b\u8aad\u307f\u8fbc\u307e\u308c\u3066\u304b\u3089\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Window\/load_event\">window.load<\/a><\/code>\u30a4\u30d9\u30f3\u30c8\u3092\u5f85\u3064\u304b\u3001<code><a href=\"https:\/\/docs.google.com\/document\/d\/1bO-CdqPOUVV0xaZkQMu5f5eHYxmV1RfoYVwPHXDRvyg\/edit#heading=h.y0ea1dh8xmx\">PerformanceObserver<\/a><\/code>\u3092\u4f7f\u7528\u3057\u3066\u3001entryType\u300c<code>paint<\/code>\u300d\u3092\u76e3\u8996\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u7d50\u679c\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code>[\n  {\n    \"name\": \"first-paint\",\n    \"entryType\": \"paint\",\n    \"startTime\": 812,\n    \"duration\": 0\n  },\n  {\n    \"name\": \"first-contentful-paint\",\n    \"entryType\": \"paint\",\n    \"startTime\": 856,\n    \"duration\": 0\n  }\n]<\/code><\/pre>\n<p>first-paint\u304c\u4f4e\u901f\u3067\u3042\u308b\u5834\u5408\u3001\u591a\u304f\u306e\u539f\u56e0\u306f\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u30d6\u30ed\u30c3\u30af\u3059\u308bCSS\u3084JavaScript\u306b\u3042\u308a\u307e\u3059\u3002first-contentful-paint\u307e\u3067\u306e\u9593\u9694\u304c\u5927\u304d\u3044\u5834\u5408\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u306f\u3001\u5927\u304d\u306a\u753b\u50cf\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3084\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/eliminate-render-blocking-javascript-css\/\">\u8907\u96d1\u306a\u8981\u7d20\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0<\/a>\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30ea\u30bd\u30fc\u30b9\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6e2c\u5b9a<\/h2>\n<p>\u753b\u50cf\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3001JavaScript\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u3001\u81ea\u52d5\u7684\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u306b\u8a18\u9332\u3055\u308c\u307e\u3059\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u901f\u5ea6\u306e\u554f\u984c\u306b\u5bfe\u3057\u3066\u958b\u767a\u8005\u304c\u3067\u304d\u308b\u3053\u3068\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3059\u308b\u7a0b\u5ea6\u3002\u3067\u3059\u304c\u3001\u5927\u304d\u306a\u30a2\u30bb\u30c3\u30c8\u3001\u4f4e\u901f\u306aAjax\u5fdc\u7b54\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u60aa\u3044\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u88fd\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3069\u306e\u554f\u984c\u306e\u628a\u63e1\u306b\u306f\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/PerformanceResourceTiming\">PerformanceResourceTiming<\/a>\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u914d\u5217\u3092\u3001\u30d0\u30c3\u30d5\u30a1\u304b\u3089\u62bd\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>const resources = performance.getEntriesByType('resource');<\/code><\/pre>\n<p>\u3082\u3057\u304f\u306f\u3001\u5b8c\u5168\u306aURL\u3092\u6e21\u3057\u3066\u30a2\u30bb\u30c3\u30c8\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<pre><code>const resource = performance.getEntriesByName('https:\/\/test.com\/script.js');<\/code><\/pre>\n<p>\u4ee5\u4e0b\u304c\u7d50\u679c\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code>[\n  {\n    connectEnd: 195,\n    connectStart: 195,\n    decodedBodySize: 0,\n    domainLookupEnd: 195,\n    domainLookupStart: 195,\n    duration: 2,\n    encodedBodySize: 0,\n    entryType: \"resource\",\n    fetchStart: 195,\n    initiatorType: \"script\",\n    name: \"https:\/\/test.com\/script.js\",\n    nextHopProtocol: \"h3\",\n    redirectEnd: 0,\n    redirectStart: 0,\n    requestStart: 195,\n    responseEnd: 197,\n    responseStart: 197,\n    secureConnectionStart: 195,\n    serverTiming: [],\n    startTime: 195,\n    transferSize: 0,\n    workerStart: 195\n  }\n]<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8abf\u67fb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>name<\/strong>\uff1a\u30ea\u30bd\u30fc\u30b9URL<\/li>\n<li><strong>entryType<\/strong>\uff1a\u300cresource\u300d<\/li>\n<li><strong>initiatorType<\/strong>\uff1a\u30ea\u30bd\u30fc\u30b9\u304c\u3069\u306e\u3088\u3046\u306b\u958b\u59cb\u3055\u308c\u305f\u304b\uff08\u300cscript\u300d\u300clink\u300d\u306a\u3069\uff09<\/li>\n<li><strong>serverTiming<\/strong>\uff1a<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/HTTP\/Headers\/Server-Timing\">HTTP Server-Timing\u30d8\u30c3\u30c0<\/a>\u3067\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u6e21\u3055\u308c\u308b<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/PerformanceServerTiming\">PerformanceServerTiming<\/a><\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\uff08\u30b5\u30fc\u30d0\u30fc\u5074\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u8ffd\u52a0\u306e\u5206\u6790\u306e\u305f\u3081\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u9001\u4fe1\u53ef\u80fd\uff09<\/li>\n<li><strong>startTime<\/strong>\uff1a\u53d6\u5f97\u3092\u958b\u59cb\u3057\u305f\u3068\u304d\u306e\u6642\u523b<\/li>\n<li><strong>nextHopProtocol<\/strong>\uff1a\u4f7f\u7528\u3055\u308c\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30c8\u30b3\u30eb<\/li>\n<li><strong>workerStart<\/strong>\uff1aProgressive Web App Service Worker\u3092\u958b\u59cb\u3059\u308b\u76f4\u524d\u306e\u6642\u523b\uff08Service Worker\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u306a\u3044\u5834\u5408\u306f0\uff09<\/li>\n<li><strong>redirectStart<\/strong>\uff1a\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u958b\u59cb\u3057\u305f\u3068\u304d\u306e\u6642\u523b<\/li>\n<li><strong>redirectEnd<\/strong>\uff1a\u6700\u5f8c\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u6700\u5f8c\u306e\u30d0\u30a4\u30c8\u3092\u53d7\u4fe1\u3057\u305f\u76f4\u5f8c\u306e\u6642\u523b<\/li>\n<li><strong>fetchStart<\/strong>\uff1a\u30ea\u30bd\u30fc\u30b9\u53d6\u5f97\u3092\u958b\u59cb\u3059\u308b\u76f4\u524d\u306e\u6642\u523b<\/li>\n<li><strong>domainLookupStart<\/strong>\uff1aDNS\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u76f4\u524d\u306e\u6642\u523b<\/li>\n<li><strong>domainLookupEnd<\/strong>\uff1aDNS\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u76f4\u5f8c\u306e\u6642\u523b<\/li>\n<li><strong>connectStart<\/strong>\uff1a\u30b5\u30fc\u30d0\u30fc\u63a5\u7d9a\u3092\u78ba\u7acb\u3059\u308b\u76f4\u524d\u306e\u6642\u523b<\/li>\n<li><strong>connectEnd<\/strong>\uff1a\u30b5\u30fc\u30d0\u30fc\u63a5\u7d9a\u3092\u78ba\u7acb\u3057\u305f\u76f4\u5f8c\u306e\u6642\u523b<\/li>\n<li><strong>secureConnectionStart<\/strong>\uff1aSSL\u30cf\u30f3\u30c9\u30b7\u30a7\u30a4\u30af\u76f4\u524d\u306e\u6642\u523b<\/li>\n<li><strong>requestStart<\/strong>\uff1a\u30d6\u30e9\u30a6\u30b6\u304c\u30ea\u30bd\u30fc\u30b9\u3092\u8981\u6c42\u3059\u308b\u76f4\u524d\u306e\u6642\u523b<\/li>\n<li><strong>responseStart<\/strong>\uff1a\u30d6\u30e9\u30a6\u30b6\u304c\u30c7\u30fc\u30bf\u306e\u6700\u521d\u306e\u30d0\u30a4\u30c8\u3092\u53d7\u4fe1\u3057\u305f\u3068\u304d\u306e\u6642\u523b<\/li>\n<li><strong>responseEnd<\/strong>\uff1a\u6700\u5f8c\u306e\u30d0\u30a4\u30c8\u3092\u53d7\u4fe1\u3057\u305f\u3001\u307e\u305f\u306f\u63a5\u7d9a\u3092\u30af\u30ed\u30fc\u30ba\u3057\u305f\u76f4\u5f8c\u306e\u6642\u523b<\/li>\n<li><strong>duration<\/strong>\uff1astartTime\u3068responseEnd\u306e\u9593\u306e\u5dee<\/li>\n<li><strong>transferSize<\/strong>\uff1a\u30d0\u30a4\u30c8\u5358\u4f4d\u306e\u30ea\u30bd\u30fc\u30b9\u30b5\u30a4\u30ba\uff08\u30d8\u30c3\u30c0\u30fc\u3068\u5727\u7e2e\u3055\u308c\u305f\u30dc\u30c7\u30a3\u3092\u542b\u3080\uff09<\/li>\n<li><strong>encodedBodySize<\/strong>\uff1a\u89e3\u51cd\u76f4\u524d\u306e\u30d0\u30a4\u30c8\u5358\u4f4d\u306e\u30ea\u30bd\u30fc\u30b9\u30dc\u30c7\u30a3\u306e\u30b5\u30a4\u30ba<\/li>\n<li><strong>decodedBodySize<\/strong>\uff1a\u89e3\u51cd\u76f4\u5f8c\u306e\u30d0\u30a4\u30c8\u5358\u4f4d\u306e\u30ea\u30bd\u30fc\u30b9\u30dc\u30c7\u30a3\u306e\u30b5\u30a4\u30ba<\/li>\n<\/ul>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/Fetch_API\">Fetch API<\/a>\u306b\u3088\u3063\u3066\u958b\u59cb\u3055\u308c\u305f\u3059\u3079\u3066\u306eAjax\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u3001\u8ee2\u9001\u30b5\u30a4\u30ba\u306e\u5408\u8a08\u3068\u8ee2\u9001\u6642\u9593\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code>const fetchAll = performance.getEntriesByType('resource')\n  .filter( r =&gt; r.initiatorType === 'fetch')\n  .reduce( (sum, current) =&gt; {\n    return {\n      transferSize: sum.transferSize += current.transferSize,\n      duration: sum.duration += current.duration\n    }\n  },\n  { transferSize: 0, duration: 0 }\n);<\/code><\/pre>\n<h2>\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6e2c\u5b9a<\/h2>\n<p>\u76f4\u524d\u306e\u30da\u30fc\u30b8\u306e\u30a2\u30f3\u30ed\u30fc\u30c9\u3068\u3001\u73fe\u5728\u306e\u30da\u30fc\u30b8\u306e\u30ed\u30fc\u30c9\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u30011\u3064\u306e<code><a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/PerformanceNavigationTiming\">PerformanceNavigationTiming<\/a><\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u3001\u81ea\u52d5\u7684\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1\u306b\u8a18\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u914d\u5217\u306b\u53d6\u308a\u51fa\u3059\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001<\/p>\n<pre><code>const pageTime = performance.getEntriesByType('navigation');<\/code><\/pre>\n<p>\u307e\u305f\u306f\u3001\u30da\u30fc\u30b8\u306eURL\u3092<code>.getEntriesByName()<\/code>\u306b\u6e21\u3057\u307e\u3059\u3002<\/p>\n<pre><code>const pageTiming = performance.getEntriesByName(window.location);<\/code><\/pre>\n<p>\u30e1\u30c8\u30ea\u30af\u30b9\u306f\u3001<a href=\"https:\/\/docs.google.com\/document\/d\/1bO-CdqPOUVV0xaZkQMu5f5eHYxmV1RfoYVwPHXDRvyg\/edit#heading=h.k94hcflv9m3o\">\u30ea\u30bd\u30fc\u30b9<\/a>\u3068\u540c\u3058\u3067\u3059\u304c\u3001\u30da\u30fc\u30b8\u56fa\u6709\u306e\u5024\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>entryType<\/strong>\uff1a\u4f8b\uff1a\u300cnavigation\u300d<\/li>\n<li><strong>type<\/strong>\uff1a\u300cnavigate\u300d\u300creload\u300d\u300cback_forward\u300d\u300cprerender\u300d\u306e\u3069\u308c\u304b<\/li>\n<li><strong>redirectCount<\/strong>\uff1a\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u6570<\/li>\n<li><strong>unloadEventStart<\/strong>\uff1a\u524d\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306eunload\u30a4\u30d9\u30f3\u30c8\u76f4\u524d\u306e\u6642\u523b<\/li>\n<li><strong>unloadEventEnd<\/strong>\uff1a\u524d\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306eunload\u30a4\u30d9\u30f3\u30c8\u76f4\u5f8c\u306e\u6642\u523b<\/li>\n<li><strong>domInteractive<\/strong>\uff1a\u30d6\u30e9\u30a6\u30b6\u304cHTML\u3092\u30d1\u30fc\u30b9\u3057\u3001DOM\u3092\u69cb\u7bc9\u3057\u305f\u3068\u304d\u306e\u6642\u523b<\/li>\n<li><strong>domContentLoadedEventStart<\/strong>\uff1a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306eDOMContentLoaded\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u706b\u3059\u308b\u76f4\u524d\u306e\u6642\u523b<\/li>\n<li><strong>domContentLoadedEventEnd<\/strong>\uff1a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306eDOMContentLoaded\u30a4\u30d9\u30f3\u30c8\u304c\u5b8c\u4e86\u3057\u305f\u76f4\u5f8c\u306e\u6642\u523b<\/li>\n<li><strong>domComplete<\/strong>\uff1aDOM\u306e\u69cb\u7bc9\u3001\u304a\u3088\u3073DOMContentLoaded\u30a4\u30d9\u30f3\u30c8\u306e\u5b8c\u4e86\u76f4\u5f8c\u306e\u6642\u523b<\/li>\n<li><strong>loadEventStart<\/strong>\uff1a\u30da\u30fc\u30b8\u306eload\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u706b\u3059\u308b\u76f4\u524d\u306e\u6642\u523b<\/li>\n<li><strong>loadEventEnd<\/strong>\uff1a\u30da\u30fc\u30b8\u306eload\u30a4\u30d9\u30f3\u30c8\u304c\u5b8c\u4e86\u3057\u3001\u3059\u3079\u3066\u306e\u30a2\u30bb\u30c3\u30c8\u304c\u5229\u7528\u53ef\u80fd\u306b\u306a\u3063\u305f\u76f4\u5f8c\u306e\u6642\u523b<\/li>\n<\/ul>\n<p>\u5178\u578b\u7684\u306a\u554f\u984c\u3068\u4e3b\u306a\u539f\u56e0\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>unloadEventEnd<\/strong>\u3068<strong>domInteractive<\/strong>\u306e\u9593\u306e\u9577\u6642\u9593\u306e\u9045\u5ef6\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u5fdc\u7b54\u304c\u9045\u3044\u3002<\/li>\n<li><strong>domContentLoadedEventStart<\/strong>\u3068<strong>domComplete<\/strong>\u306e\u9593\u306e\u9577\u6642\u9593\u306e\u9045\u5ef6\u3002\u30da\u30fc\u30b8\u306e\u958b\u59cb\u6642\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u9045\u3044\u3002<\/li>\n<li><strong>domComplete<\/strong>\u3068<strong>loadEventEnd<\/strong>\u306e\u9593\u306e\u9577\u6642\u9593\u306e\u9045\u5ef6\u3002\u30da\u30fc\u30b8\u306e\u30a2\u30bb\u30c3\u30c8\u304c\u591a\u3059\u304e\u308b\u304b\u3001\u3044\u304f\u3064\u304b\u306e\u30a2\u30bb\u30c3\u30c8\u306e\u30ed\u30fc\u30c9\u306b\u6642\u9593\u304c\u304b\u304b\u308a\u3059\u304e\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n<h2>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u8a18\u9332\u3068\u5206\u6790<\/h2>\n<p>Performance API\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u3092\u7167\u5408\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u5206\u6790\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/kinsta.com\/jp\/blog\/google-analytics-alternatives\/\">Google<\/a><a href=\"https:\/\/kinsta.com\/jp\/blog\/google-analytics-alternatives\/\">\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9<\/a><a href=\"https:\/\/kinsta.com\/jp\/blog\/google-analytics-alternatives\/\">\u306e\u3088\u3046\u306a\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30b5\u30fc\u30d3\u30b9<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3082\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3067\u304d\u307e\u3059\u304c\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30d6\u30ed\u30c3\u30af\u3055\u308c\u305f\u308a\u3001\u65b0\u305f\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3059\u53ef\u80fd\u6027\u304c\u3002\u81ea\u4f5c\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308c\u3070\u3001\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u304c\u4ed6\u306e\u6a5f\u80fd\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044\u3088\u3046\u306b\u3001\u8981\u4ef6\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u7d71\u8a08\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u306a\u3044\u53ef\u80fd\u6027\u306b\u306f\u3001\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u53e4\u3044\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u308a\u3001JavaScript\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3066\u3044\u305f\u308a\u3001\u4f01\u696d\u306e\u30d7\u30ed\u30ad\u30b7\u3092\u7d4c\u7531\u3057\u3066\u3044\u308b\u5834\u5408\u3067\u3059\u3002\u4e0d\u5b8c\u5168\u306a\u60c5\u5831\u306b\u57fa\u3065\u3044\u3066\u63a8\u6e2c\u3059\u308b\u524d\u306b\u3001\u3069\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u304c\u6b20\u3051\u3066\u3044\u308b\u306e\u304b\u3092\u628a\u63e1\u3059\u308b\u306e\u304c\u5f97\u7b56\u3067\u3059\u3002<\/p>\n<p>\u7406\u60f3\u7684\u306b\u306f\u3001\u5206\u6790\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u8907\u96d1\u306a\u8a08\u7b97\u3084\u5927\u91cf\u30c7\u30fc\u30bf\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u907f\u3051\u3066\u304f\u3060\u3055\u3044\u3002Web Worker\u3092\u5229\u7528\u3057\u3001\u540c\u671f\u7684\u306alocalStorage\u306e\u547c\u3073\u51fa\u3057\u3092\u6700\u5c0f\u9650\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u751f\u30c7\u30fc\u30bf\u306f\u3001\u3044\u3064\u3067\u3082\u5f8c\u3067\u30d0\u30c3\u30c1\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u975e\u5e38\u306b\u901f\u3044\u30c7\u30d0\u30a4\u30b9\u3084\u3001\u975e\u5e38\u306b\u9045\u3044\u63a5\u7d9a\u306a\u3069\u3001\u7d71\u8a08\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u7570\u5e38\u5024\u306b\u3082\u76ee\u3092\u5411\u3051\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3068\u3048\u3070\u30019\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u304c2\u79d2\u3067\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u307f\u300110\u4eba\u76ee\u306e\u30e6\u30fc\u30b6\u30fc\u304c60\u79d2\u304b\u3051\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5834\u5408\u3001\u5e73\u5747\u30ec\u30a4\u30c6\u30f3\u30b7\u306f\u7d048\u79d2\u306b\u306a\u308a\u307e\u3059\u3002\u3088\u308a\u73fe\u5b9f\u7684\u306a\u6307\u6a19\u306f\u3001\u4e2d\u592e\u5024\uff082\u79d2\uff09\u3001\u307e\u305f\u306f90\u30d1\u30fc\u30bb\u30f3\u30bf\u30a4\u30eb\uff0810\u4eba\u4e2d9\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u8aad\u307f\u8fbc\u307f\u6642\u9593\u304c2\u79d2\u4ee5\u4e0b\uff09\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/application-performance-monitoring\/\">\u30a6\u30a7\u30d6\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/a>\u306f\u3001\u4f9d\u7136\u3068\u3057\u3066<a href=\"https:\/\/kinsta.com\/blog\/frontend-developer\/\">\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u91cd\u8981\u306a<\/a><a href=\"https:\/\/kinsta.com\/blog\/frontend-developer\/\">\u8981\u7d20<\/a>\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u5e38\u306b\u3001\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u307b\u3068\u3093\u3069\u306e\u30c7\u30d0\u30a4\u30b9\u3067\u9069\u5207\u306b\u5fdc\u7b54\u3059\u308b\u3053\u3068\u3092\u671f\u5f85\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u307e\u305f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/core-web-vitals\/\">\u9045\u3044\u30b5\u30a4\u30c8\u306fGoogle\u3067\u4f4e\u3044\u691c\u7d22\u9806\u4f4d\u306b\u306a\u308b<\/a>\u305f\u3081\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u6700\u9069\u5316\u3082\u5f71\u97ff\u3092\u53d7\u3051\u307e\u3059\u3002<\/p>\n\n<p>\u591a\u304f\u306e<a href=\"https:\/\/kinsta.com\/jp\/blog\/application-performance-monitoring\/\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u76e3\u8996\u30c4\u30fc\u30eb<\/a>\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u307b\u3068\u3093\u3069\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u5b9f\u884c\u901f\u5ea6\u3092\u8a55\u4fa1\u3059\u308b\u304b\u3001\u9650\u3089\u308c\u305f\u9ad8\u6a5f\u80fd\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u306e\u63cf\u753b\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002Performance API\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u4ed6\u306e\u65b9\u6cd5\u3067\u306f\u8a08\u7b97\u3067\u304d\u306a\u3044\u3001\u30ea\u30a2\u30eb\u306a\u30e6\u30fc\u30b6\u30fc\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u7167\u5408\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Performance API\u306f\u3001\u5b9f\u969b\u306e\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668 &#8230;<\/p>\n","protected":false},"author":188,"featured_media":36213,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[555,314,482,556,199,497],"topic":[751,778],"class_list":["post-36212","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-api","tag-browsers","tag-javascript","tag-node-js","tag-performance","tag-performance-testing","topic-api","topic-javascript-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Performance API\u5165\u9580<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Performance API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Performance API\u5165\u9580\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Performance API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-30T08:59:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-25T07:55:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Craig Buckler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Performance API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png\" \/>\n<meta name=\"twitter:creator\" content=\"@craigbuckler\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Craig Buckler\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/\"},\"author\":{\"name\":\"Craig Buckler\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/715d986404b06691ab3014e06596908e\"},\"headline\":\"Performance API\u5165\u9580\",\"datePublished\":\"2022-08-30T08:59:51+00:00\",\"dateModified\":\"2023-08-25T07:55:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/\"},\"wordCount\":204,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png\",\"keywords\":[\"API\",\"Browsers\",\"JavaScript\",\"node.js\",\"performance\",\"performance testing\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/\",\"name\":\"Performance API\u5165\u9580\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png\",\"datePublished\":\"2022-08-30T08:59:51+00:00\",\"dateModified\":\"2023-08-25T07:55:33+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Performance API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/api\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Performance API\u5165\u9580\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/715d986404b06691ab3014e06596908e\",\"name\":\"Craig Buckler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8e76011e66720bd2e3e24e164aa6f0b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8e76011e66720bd2e3e24e164aa6f0b2?s=96&d=mm&r=g\",\"caption\":\"Craig Buckler\"},\"description\":\"Freelance UK web developer, writer, and speaker. Has been around a long time and rants about standards and performance.\",\"sameAs\":[\"https:\/\/craigbuckler.com\/\",\"https:\/\/www.linkedin.com\/in\/craigbuckler\",\"https:\/\/x.com\/craigbuckler\",\"https:\/\/www.youtube.com\/channel\/UCQwdl5oBTWGhifS6bRGADMQ\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/craigbuckler\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Performance API\u5165\u9580","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Performance API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","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:\/\/kinsta.com\/jp\/blog\/performance-api\/","og_locale":"ja_JP","og_type":"article","og_title":"Performance API\u5165\u9580","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Performance API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2022-08-30T08:59:51+00:00","article_modified_time":"2023-08-25T07:55:33+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png","type":"image\/png"}],"author":"Craig Buckler","twitter_card":"summary_large_image","twitter_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Performance API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png","twitter_creator":"@craigbuckler","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Craig Buckler","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/"},"author":{"name":"Craig Buckler","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/715d986404b06691ab3014e06596908e"},"headline":"Performance API\u5165\u9580","datePublished":"2022-08-30T08:59:51+00:00","dateModified":"2023-08-25T07:55:33+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/"},"wordCount":204,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png","keywords":["API","Browsers","JavaScript","node.js","performance","performance testing"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/performance-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/","url":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/","name":"Performance API\u5165\u9580","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png","datePublished":"2022-08-30T08:59:51+00:00","dateModified":"2023-08-25T07:55:33+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Performance API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u6a5f\u5668\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u3001\u672c\u756a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u6e2c\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/performance-api\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/08\/performance-api.png","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/performance-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"API","item":"https:\/\/kinsta.com\/jp\/topics\/api\/"},{"@type":"ListItem","position":3,"name":"Performance API\u5165\u9580"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/715d986404b06691ab3014e06596908e","name":"Craig Buckler","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8e76011e66720bd2e3e24e164aa6f0b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8e76011e66720bd2e3e24e164aa6f0b2?s=96&d=mm&r=g","caption":"Craig Buckler"},"description":"Freelance UK web developer, writer, and speaker. Has been around a long time and rants about standards and performance.","sameAs":["https:\/\/craigbuckler.com\/","https:\/\/www.linkedin.com\/in\/craigbuckler","https:\/\/x.com\/craigbuckler","https:\/\/www.youtube.com\/channel\/UCQwdl5oBTWGhifS6bRGADMQ"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/craigbuckler\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/36212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/188"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=36212"}],"version-history":[{"count":2,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/36212\/revisions"}],"predecessor-version":[{"id":36219,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/36212\/revisions\/36219"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/translations\/de"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/translations\/es"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/translations\/nl"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/translations\/jp"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/36212\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/36213"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=36212"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=36212"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=36212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}