Performance: Static site generation with Nuxt
HIGH IMPACT
Static site generation improves page load speed by pre-building HTML pages, reducing server work and client rendering time.
export default { target: 'static', ssr: true /* enable static site generation */ }
export default { ssr: false /* client-side rendering only */ }
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Client-side rendering only | Many DOM updates after JS loads | Multiple reflows during hydration | High paint cost due to delayed content | [X] Bad |
| Static site generation with Nuxt | Minimal DOM updates on load | Single reflow on initial paint | Low paint cost with immediate content | [OK] Good |