Performance: Open Graph metadata
LOW IMPACT
Open Graph metadata affects how social media platforms preview your page, impacting perceived load speed and user engagement but not the actual page rendering speed.
import Head from 'next/head'; export default function Page() { return ( <> <Head> <meta property="og:title" content="My Page" /> <meta property="og:description" content="Description here" /> <meta property="og:image" content="/optimized-image.jpg" /> <meta property="og:image:width" content="1200" /> <meta property="og:image:height" content="630" /> </Head> <main>Content</main> </> ); }
import Head from 'next/head'; export default function Page() { return ( <> <Head> <meta property="og:title" content="My Page" /> <meta property="og:description" content="Description here" /> <meta property="og:image" content="/large-image.jpg" /> <meta property="og:image:width" content="4000" /> <meta property="og:image:height" content="3000" /> </Head> <main>Content</main> </> ); }
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Large og:image with high resolution | 0 (metadata only) | 0 | 0 | [X] Bad |
| Optimized og:image with proper size | 0 (metadata only) | 0 | 0 | [OK] Good |