Skip to main content

SEO for Astros

Astro SEO and performance is the set of practices that make Astro sites rank and load well. They include unique titles and meta descriptions, canonical URLs, a sitemap, structured data, optimised images with the Image component, and low JavaScript, which supports Core Web Vitals such as Largest Contentful Paint.

Stage: Integrations · Part of the Astro roadmap · Last reviewed 19 November 2026

What to learn in SEO

SEO interview questions

Why are Astro sites usually fast?

Astro renders pages to HTML ahead of time and sends no JavaScript unless a component is hydrated as an island. Less JavaScript means less to download, parse and execute, which improves loading metrics such as First Contentful Paint and Largest Contentful Paint on ordinary devices.

How do you stop an image from causing layout shift?

Give the image explicit width and height, which the Astro Image component sets for local images, so the browser reserves space before it loads. Optimised formats and lazy loading below the fold also help. Layout shift hurts the Cumulative Layout Shift metric.

Where SEO fits in the Astro roadmap

SEO belongs to the Integrations stage (beginner level). Extend.

Back to the full Astro roadmap