Performance: Nuxt framework overview
MEDIUM IMPACT
Nuxt affects page load speed by optimizing server-side rendering and static site generation, improving initial content display and interaction readiness.
export default defineNuxtConfig({ ssr: true }) // enable server-side rendering
const app = createApp(App).mount('#app') // client-side only rendering
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Client-side only rendering | High (builds DOM after JS loads) | Multiple reflows during hydration | High paint cost due to delayed content | [X] Bad |
| Nuxt SSR enabled | Low (DOM from server HTML) | Single reflow on initial load | Low paint cost, fast content display | [OK] Good |
| No code splitting | Medium | Reflows during JS parsing | Medium paint cost | [!] Bad |
| Dynamic imports and code splitting | Low | Minimal reflows | Low paint cost | [OK] Good |