{"id":9165,"date":"2025-09-19T14:54:24","date_gmt":"2025-09-19T05:54:24","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=9165"},"modified":"2025-09-19T14:55:05","modified_gmt":"2025-09-19T05:55:05","slug":"nuxt3-%e6%ae%b5%e9%9a%8e%e3%83%8f%e3%82%a4%e3%83%89%e3%83%ac%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%a7%e9%87%8d%e3%81%84lp%e3%82%92%e8%bb%bd%e3%81%8f","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/frontend\/nuxt3-%e6%ae%b5%e9%9a%8e%e3%83%8f%e3%82%a4%e3%83%89%e3%83%ac%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%a7%e9%87%8d%e3%81%84lp%e3%82%92%e8%bb%bd%e3%81%8f\/","title":{"rendered":"Nuxt3 \u201c\u6bb5\u968e\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u201d\u3067\u91cd\u3044LP\u3092\u8efd\u304f"},"content":{"rendered":"<div class=\"the_content\">\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u3001\u72ec\u8eab\u8cb4\u65cfFire\u3067\u3059\u3002<\/p>\n\n\n\n<p>Web\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u3084\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306e\u65b9\u3005\u3001\u6700\u8fd1\u306eWeb\u5236\u4f5c\u3067\u300c\u91cd\u304f\u3066\u9045\u3044\u30e9\u30f3\u30c7\u30a3\u30f3\u30b0\u30da\u30fc\u30b8\u300d\u306b\u60a9\u3093\u3060\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u7e26\u306b\u9577\u3044\u30da\u30fc\u30b8\u3084\u3001\u3044\u308d\u3044\u308d\u306a\u8981\u7d20\u304c\u8a70\u307e\u3063\u305f\u30da\u30fc\u30b8\u306b\u306a\u308c\u3070\u306a\u308b\u307b\u3069\u3001\u300c\u306a\u3093\u304b\u3061\u3087\u3063\u3068\u9045\u3044\u3088\u306d\u300d\u3068\u304b\u300c\u3082\u3063\u3055\u308a\u3057\u3066\u3044\u308b\u3088\u306d\u3002\u3002\u3002\u300d\u3001\u300c\u30da\u30fc\u30b8\u5206\u5272\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3093\u3058\u3083\u306a\u3044\uff1f\u300d\u307f\u305f\u3044\u306a\u58f0\u3001\u805e\u3053\u3048\u307e\u3059\u3088\u306d\uff1f<\/p>\n\n\n\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u65e5\u3005\u9032\u3081\u3066\u3044\u308b\u5f0a\u793e\u3067\u306f\u3001\u305d\u3046\u3044\u3046\u304a\u56f0\u308a\u306b\u5bfe\u5fdc\u3059\u308b\u306e\u304c\u65e5\u5e38\u8336\u98ef\u4e8b\u3001\u3001\u3068\u3082\u8a00\u3048\u307e\u3059\u3002\u5f0a\u793e\u5185\u3067\u306f\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u9593\u3067\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306e\u5bfe\u51e6\u6cd5\u3092\u5171\u6709\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u4f7f\u3063\u305f\uff08\u8003\u3048\u65b9\u306e\u3082\u3068\u3068\u3082\u306a\u308b\uff09\u65b9\u6cd5\u3000\u201c\u6bb5\u968e\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u201d\u3000\u306b\u3064\u3044\u3066\u4eca\u56de\u306fNuxt3\/Vue3\u3092\u30d9\u30fc\u30b9\u306b\u3054\u6848\u5185\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6bb5\u968e\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u3044\u3046\u8a00\u8449\u3001\u3042\u307e\u308a\u805e\u304d\u306a\u308c\u307e\u305b\u3093\u306d\u3002\u30de\u30e9\u30bd\u30f3\u3084\u767b\u5c71\u3092\u3055\u308c\u308b\u65b9\u306a\u3089\u805e\u3044\u305f\u3053\u3068\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u6c34\u5206\u88dc\u7d66\u3084\u6804\u990a\u88dc\u7d66\u3068\u3044\u3063\u305f\u96f0\u56f2\u6c17\u3067\u4f7f\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u3054\u6848\u5185\u3059\u308b\u6bb5\u968e\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u3044\u3046\u306e\u306f\u3001Vue.js\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308bNuxt3\u3092\u4f7f\u3044\u3001SSR\u3092\u6d3b\u7528\u3057\u3066<strong>\u5148\u306bHTML\u3092\u63cf\u753b<\/strong>\u3057\u3001<strong>\u5fc5\u8981\u306a\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3060\u3051<\/strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eJS\u3092\u5f53\u3066\u3066\uff08\uff1d\u3053\u3053\u3092\u30cf\u30a4\u30c9\u30ec\u30fc\u30c8\u3057\u3066\u3001\u3068\u8868\u73fe\u3057\u307e\u3059\u3002React\u306a\u3093\u304b\u3092\u4f7f\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u306fHydration\u30a8\u30e9\u30fc\u7b49\u898b\u305f\u3053\u3068\u3042\u308b\u4eba\u306f\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff09\u3001\u201c\u52d5\u7684\u306b\u5909\u308f\u3063\u3066\u3044\u304fUI\u201d\u306b\u3057\u3066\u3044\u304f\u624b\u6cd5\u3067\u3059\u3002<br>Nuxt3\/Vue 3 \u3067\u306f\u4ee5\u4e0b\u306e<strong>\u30c8\u30ea\u30ac\u30fc<\/strong>\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u7c21\u5358\u306b\u6bb5\u968e\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u53ef\u8996\u5316\u30c8\u30ea\u30ac\u30fc<\/strong>\uff1a\u8981\u7d20\u304c\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306b\u5165\u3063\u305f\u3089\u521d\u3081\u3066\u30de\u30a6\u30f3\u30c8\uff08\u4f8b\uff1a\u30ec\u30d3\u30e5\u30fc\u3001\u30ae\u30e3\u30e9\u30ea\u30fc\uff09<\/li>\n\n\n\n<li><strong>\u76f8\u4e92\u4f5c\u7528\u30c8\u30ea\u30ac\u30fc<\/strong>\uff1a\u30af\u30ea\u30c3\u30af\u7b49\u306e\u64cd\u4f5c\u304c\u6765\u305f\u3089\u521d\u3081\u3066\u30de\u30a6\u30f3\u30c8\uff08\u4f8b\uff1a\u30e2\u30fc\u30c0\u30eb\u3001\u30bf\u30d6\uff09<\/li>\n\n\n\n<li><strong>\u30a2\u30a4\u30c9\u30eb\u30c8\u30ea\u30ac\u30fc<\/strong>\uff1a<code>requestIdleCallback<\/code> \u7b49\u3067CPU\u304c\u7a7a\u3044\u305f\u3089\u5f8c\u56de\u3057\u9818\u57df\u3092\u30de\u30a6\u30f3\u30c8<\/li>\n\n\n\n<li><strong>\u6761\u4ef6\u30c8\u30ea\u30ac\u30fc<\/strong>\uff1a\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\/\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u72b6\u614b\u3067\u5206\u5c90\uff08\u4f4e\u901f\u56de\u7dda\u306f\u52d5\u753bUI\u3092\u9045\u3089\u305b\u308b \u7b49\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a<strong>\u521d\u671f\u8868\u793a\u6642\u306eJavaScript\u306e\u914d\u5e03\u91cf\u3092\u4e0b\u3052\u3066\u3068\u7aef\u672b\u306e\u8ca0\u8377<\/strong>\u3092\u4e0b\u3052\u3064\u3064\u3001<strong>\u4e0a\u90e8\u306f\u3059\u3050\u898b\u3048\u308b\/\u89e6\u308c\u308b<\/strong>\u4f53\u9a13\u3092\u4e21\u7acb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Nuxt3\u306e\u6bb5\u968e\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u89e3\u6c7a<\/h2>\n\n\n\n<p>Nuxt3\u306e\u201c\u6bb5\u968e\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u201d\u306f\u3001\u3053\u3046\u3057\u305f\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u65b0\u3057\u3044\u6280\u8853\u3067\u3059\u3002\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u300cIsland\u300d\u306b\u5206\u3051\u3001\u305d\u308c\u305e\u308c\u306e\u5fc5\u8981\u306a\u6642\u306b\u3060\u3051\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067\u521d\u671f\u5316\uff08\u30cf\u30a4\u30c9\u30ec\u30fc\u30c8\uff09\u3057\u307e\u3059\u3002\u5177\u4f53\u7684\u306a\u6d41\u308c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Island\u3054\u3068\u306e\u5206\u5272<\/strong><\/h3>\n\n\n\n<p>\u5404\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u72ec\u7acb\u3057\u305fIsland\u3068\u3057\u3066\u6271\u3044\u3001Nuxt\u306e\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0(SSR)\u3092\u7528\u3044\u3066\u521d\u671f\u8868\u793a\u3092\u9ad8\u901f\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u5b9f\u88c5\u4f8b\uff08\u69cb\u9020\uff09<\/strong><\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!-- pages\/index.vue --&gt;\n&lt;template&gt;\n  &lt;HeroIsland \/&gt;              &lt;!-- \u4e0a\u90e8\uff1aSSR\u3067\u5373\u8868\u793a --&gt;\n  &lt;LazyGalleryIsland \/&gt;       &lt;!-- \u4e0b\u90e8\uff1a\u5f8c\u6bb5\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3 --&gt;\n  &lt;LazyReviewsIsland \/&gt;\n&lt;\/template&gt;\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\"><strong>\u30dd\u30a4\u30f3\u30c8<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5404 Island \u306f<strong>Props\u3067\u758e\u7d50\u5408<\/strong>\u306b\u3002\u526f\u4f5c\u7528\u3092\u5185\u90e8\u5b8c\u7d50\u3055\u305b\u3001\u5916\u90e8\u306b\u6ce2\u53ca\u3055\u305b\u306a\u3044\u3002<\/li>\n\n\n\n<li>\u753b\u50cf\u30fb\u30c6\u30ad\u30b9\u30c8\u306fSSR\u3067<strong>\u9aa8\u7d44\u307f<\/strong>\u3092\u63cf\u753b\u3057\u3066\u3001CLS\u3092\u9632\u3050\uff08\u5e45\/\u9ad8\u3055\u3092\u660e\u793a\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2<strong>. \u30d5\u30a1\u30fc\u30b9\u30c8\u30d3\u30e5\u30fc\u306fSSR\u3067\u8868\u793a<\/strong><\/h3>\n\n\n\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u6700\u521d\u306b\u76ee\u306b\u3059\u308b\u90e8\u5206\u306fSSR\u3067\u63cf\u753b\u3057\u3001\u3059\u3050\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u306b\u306f\u3001\u30d2\u30fc\u30ed\u30fc\u30bb\u30af\u30b7\u30e7\u30f3\u3084\u4e3b\u8981\u306a\u30a2\u30af\u30b7\u30e7\u30f3\u30dc\u30bf\u30f3\u306a\u3069\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u5b9f\u88c5\u4f8b\uff08\u30d2\u30fc\u30ed\u30fc\u306fSSR\u3001\u30a2\u30cb\u30e1\u3060\u3051\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\uff09<\/strong><\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!-- components\/HeroIsland.vue --&gt;\n&lt;template&gt;\n  &lt;section class=&quot;hero&quot;&gt;\n    &lt;h1&gt;{{ title }}&lt;\/h1&gt;\n    &lt;p&gt;{{ lead }}&lt;\/p&gt;\n    &lt;!-- \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u7b49\u306e\u30d6\u30e9\u30a6\u30b6API\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u9650\u5b9a --&gt;\n    &lt;ClientOnly&gt;\n      &lt;FancyParticles \/&gt;\n    &lt;\/ClientOnly&gt;\n  &lt;\/section&gt;\n&lt;\/template&gt;\n\n&lt;script setup lang=&quot;ts&quot;&gt;\ndefineProps&lt;{ title: string; lead: string }&gt;()\n&lt;\/script&gt;\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\"><strong>\u30dd\u30a4\u30f3\u30c8<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>ClientOnly<\/code> \u306f<strong>\u5fc5\u8981\u6700\u5c0f\u9650<\/strong>\u3067\u5305\u3080\uff08\u5305\u307f\u904e\u304e\u308b\u3068SSR\u306e\u6069\u6075\u304c\u6e1b\u308b\uff09\u3002<\/li>\n\n\n\n<li>SSR\u90e8\u306f<strong>\u9759\u7684HTML\u3067\u5b8c\u6210<\/strong>\u3055\u305b\u3001JS\u5f85\u3061\u306e\u767d\u629c\u3051\u3092\u51fa\u3055\u306a\u3044\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u4e0b\u90e8\u306f\u53ef\u8996\u6642\u306b\u30de\u30a6\u30f3\u30c8<\/strong><\/h3>\n\n\n\n<p>\u30ae\u30e3\u30e9\u30ea\u30fc\u3084\u30ec\u30d3\u30e5\u30fc\u306f\u3001IntersectionObserver\u3092\u4f7f\u3044\u3001\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u305f\u6642\u306b\u3060\u3051\u30de\u30a6\u30f3\u30c8\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u521d\u671f\u30ed\u30fc\u30c9\u6642\u306eJS\u8ca0\u8377\u3092\u8efd\u6e1b\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u5b9f\u88c5\u4f8b\uff08@vueuse\/core \u306e <code>useIntersectionObserver<\/code>\uff09<\/strong><\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!-- components\/LazyGalleryIsland.vue --&gt;\n&lt;template&gt;\n  &lt;section ref=&quot;target&quot; class=&quot;gallery&quot;&gt;\n    &lt;div v-if=&quot;!mounted&quot; class=&quot;skeleton&quot; aria-busy=&quot;true&quot; \/&gt;\n    &lt;ClientOnly&gt;\n      &lt;Gallery v-if=&quot;mounted&quot; :items=&quot;items&quot; \/&gt;\n    &lt;\/ClientOnly&gt;\n  &lt;\/section&gt;\n&lt;\/template&gt;\n\n&lt;script setup lang=&quot;ts&quot;&gt;\nimport { ref } from &#039;vue&#039;\nimport { useIntersectionObserver } from &#039;@vueuse\/core&#039; \/\/ npm i @vueuse\/core\nconst props = defineProps&lt;{ items: Array&lt;{src:string; alt:string}&gt; }&gt;()\n\nconst target = ref&lt;HTMLElement | null&gt;(null)\nconst mounted = ref(false)\n\nuseIntersectionObserver(target, (&#x5B;entry]) =&gt; {\n  if (entry?.isIntersecting) mounted.value = true\n}, { rootMargin: &#039;200px&#039;, threshold: 0 })\n&lt;\/script&gt;\n\n&lt;style scoped&gt;\n.skeleton{height:320px;background:linear-gradient(90deg,#eee,#f6f6f6,#eee);\nbackground-size:200% 100%;animation:sk 1.2s linear infinite}\n@keyframes sk{to{background-position:200% 0}}\n&lt;\/style&gt;\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\"><strong>\u30dd\u30a4\u30f3\u30c8<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>rootMargin: '200px'<\/code> \u3067<strong>\u624b\u524d\u5148\u8aad\u307f<\/strong>\u3002<code>threshold: 0<\/code> \u3067\u201c\u304b\u3059\u3063\u305f\u3089\u201d\u958b\u59cb\u3002<\/li>\n\n\n\n<li>\u4ee3\u66ff\u3068\u3057\u3066<strong>\u81ea\u524d\u306eIntersectionObserver<\/strong>\u3084 <code>v-intersect<\/code> \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u3082OK\u3002<\/li>\n\n\n\n<li>\u30de\u30a6\u30f3\u30c8\u5f8c\u306f\u30aa\u30d6\u30b6\u30fc\u30d0\u30fc\u89e3\u9664\uff08\u4e0a\u8a18\u306f <code>mounted<\/code> \u5207\u66ff\u3067\u5373\u5ea7\u306bDOM\u304c\u7f6e\u63db\u3055\u308c\u308b\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>\u5171\u6709\u72b6\u614b\u306e\u7ba1\u7406<\/strong><\/h3>\n\n\n\n<p>Island\u9593\u306e\u30c7\u30fc\u30bf\u306fPinia\u3067\u7ba1\u7406\u3057\u3001\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306fprops\u3092\u4ecb\u3057\u3066\u6e21\u3059\u3053\u3068\u3067\u7121\u99c4\u306a\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u5b9f\u88c5\u4f8b\uff08\u30af\u30ea\u30c3\u30af\u3067\u9045\u5ef6import\u2192\u30de\u30a6\u30f3\u30c8\uff09<\/strong><\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!-- components\/LazyReviewsIsland.vue --&gt;\n&lt;template&gt;\n  &lt;section class=&quot;reviews&quot;&gt;\n    &lt;button @click=&quot;mount&quot;&gt;\u30ec\u30d3\u30e5\u30fc\u3092\u8868\u793a&lt;\/button&gt;\n    &lt;ClientOnly&gt;\n      &lt;component :is=&quot;Comp&quot; v-if=&quot;Comp&quot; \/&gt;\n    &lt;\/ClientOnly&gt;\n  &lt;\/section&gt;\n&lt;\/template&gt;\n\n&lt;script setup lang=&quot;ts&quot;&gt;\nimport { ref } from &#039;vue&#039;\nconst Comp = ref&lt;any&gt;(null)\nconst mount = async () =&gt; {\n  Comp.value = (await import(&#039;.\/Reviews.vue&#039;)).default\n}\n&lt;\/script&gt;\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\"><strong>\u30dd\u30a4\u30f3\u30c8<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>import()<\/code> \u306f<strong>\u30eb\u30fc\u30c8\u5358\u4f4d\u306e\u30b3\u30fc\u30c9\u5206\u5272<\/strong>\u3092\u767a\u751f\u3055\u305b\u308b\uff08JS\u914d\u5e03\u91cf\u3092\u6291\u5236\uff09\u3002<\/li>\n\n\n\n<li>\u521d\u56de\u30de\u30a6\u30f3\u30c8\u6642\u306f<strong>\u30d5\u30a9\u30fc\u30ab\u30b9\u7ba1\u7406<\/strong>\u3068<strong>\u30a2\u30ca\u30a6\u30f3\u30b9<\/strong>\uff08SR\u5411\u3051\uff09\u3092\u5fd8\u308c\u305a\u306b\u3002<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u88c5\u4f8b<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/\/ \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5358\u4f4d\u3067\u306e\u5206\u5272\n&amp;lt;template&gt;\n  &amp;lt;MainIsland \/&gt;\n  &amp;lt;GalleryIsland \/&gt;\n  &amp;lt;ReviewIsland \/&gt;\n&amp;lt;\/template&gt;\n\n\/\/ IntersectionObserver\u3092\u6d3b\u7528\u3057\u305f\u9045\u5ef6\u30de\u30a6\u30f3\u30c8\n&amp;lt;template&gt;\n  &amp;lt;div v-intersect=&quot;mountComponent&quot;&gt;\n    &amp;lt;component :is=&quot;lazyComponent&quot; \/&gt;\n  &amp;lt;\/div&gt;\n&amp;lt;\/template&gt;\n\n&amp;lt;script&gt;\nimport { ref } from &#039;vue&#039;;\n\nexport default {\n  setup() {\n    const lazyComponent = ref(null);\n\n    function mountComponent() {\n      lazyComponent.value = import(&#039;.\/GalleryComponent.vue&#039;);\n    }\n\n    return { lazyComponent, mountComponent };\n  },\n};\n&amp;lt;\/script&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f8b<\/h2>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u3053\u306e\u65b9\u6cd5\u3092\u5c0e\u5165\u3057\u305f\u3068\u3053\u308d\u3001LCP\uff08\u6700\u5927\u30b3\u30f3\u30c6\u30f3\u30c4\u63cf\u753b\u6642\u9593\uff09\u304c\u7d0430%\u3082\u6539\u5584\u3057\u307e\u3057\u305f\u3002\u30e6\u30fc\u30b6\u30fc\u8abf\u67fb\u3067\u3082\u3001\u30da\u30fc\u30b8\u306e\u53cd\u5fdc\u901f\u5ea6\u304c\u9ad8\u8a55\u4fa1\u3092\u53d7\u3051\u3001\u30c7\u30d0\u30a4\u30b9\u306e\u753b\u9762\u8ee2\u63db\u3084\u5411\u304d\u3092\u5909\u3048\u305f\u3068\u304d\u3082\u30b9\u30e0\u30fc\u30ba\u306b\u52d5\u4f5c\u3057\u3001\u300c\u9045\u3044\u300d\u3001\u300c\u3082\u3063\u3055\u308a\u3057\u3066\u3044\u308b\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u8a55\u4fa1\u3092\u6539\u5584\u3059\u308b\u3053\u3068\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u308f\u308a\u306b<\/h2>\n\n\n\n<p>Nuxt3\u306e\u201c\u6bb5\u968e\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u201d\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u591a\u8981\u7d20\u304c\u542b\u307e\u308c\u308bLP\u3067\u3082\u30b9\u30e0\u30fc\u30ba\u3067\u8efd\u5feb\u306a\u8868\u793a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u624b\u6cd5\u3092\u3001\u6b21\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u6280\u8853\u3092\u99c6\u4f7f\u3057\u305fWeb\u5236\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u8a73\u3057\u304f\u306f<a href=\"https:\/\/fastcoding.jp\/contact\/?ad2=blog\" title=\"\">\u3053\u3061\u3089\u306e\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0<\/a>\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Nuxt3\u3092\u4f7f\u3063\u3066LP\u306e\u8868\u793a\u901f\u5ea6\u3092\u6539\u5584\uff01\u6bb5\u968e\u30cf\u30a4\u30c9\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u4ed5\u7d44\u307f\u3084\u5b9f\u88c5\u65b9\u6cd5\u3001\u5177\u4f53\u4f8b\u3092\u4ea4\u3048\u3066\u89e3\u8aac\u3002\u521d\u671f\u8868\u793a\u306e\u9ad8\u901f\u5316\u3068JS\u8ca0\u8377\u8efd\u6e1b\u3092\u4e21\u7acb\u3057\u305f\u6700\u65b0\u624b\u6cd5\u3067\u300c\u91cd\u3044\u30fb\u3082\u3063\u3055\u308a\u300d\u3092\u89e3\u6c7a\u3002\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u72ec\u81ea\u306e\u30ce\u30a6\u30cf\u30a6\u3092\u516c\u958b\uff01<\/p>\n","protected":false},"author":20,"featured_media":9167,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[13,15],"tags":[22,653,652,23],"class_list":["post-9165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontend","category-system","tag-javascript","tag-nuxt3","tag-vue3","tag-23"],"acf":[],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/09\/8e4e0d54d4be00ee9955514f109176dd.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/comments?post=9165"}],"version-history":[{"count":2,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9165\/revisions"}],"predecessor-version":[{"id":9170,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9165\/revisions\/9170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/9167"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=9165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=9165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=9165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}