# A client:only component writes title, description or JSON-LD that never reaches the HTML

> A component this page renders with `client:only` has no server render, so a title, meta description, canonical or JSON-LD it writes exists only after...

Source: https://seocode.io/checks/astro-island-client-only-head

[All checks](https://seocode.io/checks) / Meta tags

A critical-level meta tags check, run on every pull request and every CLI run.

Critical `astro-island-client-only-head`

In SEOCode's checks since 31 Oct 2026

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Read the docs](https://seocode.io/docs)

## Why this matters.

A component this page renders with \`client:only\` has no server render, so a title, meta description, canonical or JSON-LD it writes exists only after JavaScript runs. Crawlers that read the HTML, including most AI crawlers, never see it.

Runs on `.astro` · Critical checks fail the pull request status, so the change cannot merge until it is fixed.

## How to resolve it.

Move the title, description, canonical and JSON-LD into the .`astro` page or its layout, which render on the server, or render the component with \`client:load\` or \`client:visible\`, which keep a server-rendered copy.

**SEOCode writes this fix for you**

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.

## Where this comes from.

- [01 · Directives Referencedocs.astro.build](https://docs.astro.build/en/reference/directives-reference/#clientonly)

- [02 · Javascript Seo Basicsdevelopers.google.com](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics)

Using a framework? [Astro](https://seocode.io/astro-seo)

## Related checks.

Titles, descriptions, canonicals and the social tags that decide how a page is listed.

- [01 · Missing <title> tag Critical Every page must have a unique <title> tag.](https://seocode.io/checks/missing-title)

- [02 · Title tag too long Warning Title tags over 60 characters are truncated in Google SERPs, reducing click-through rate.](https://seocode.io/checks/title-too-long)

- [03 · Title tag too short Warning Title tags under 30 characters miss opportunities to include keywords.](https://seocode.io/checks/title-too-short)

- [04 · Missing meta description Critical Meta descriptions are used as SERP snippets.](https://seocode.io/checks/missing-meta-description)

- [05 · Meta description too long Warning Descriptions over 160 characters are truncated in SERPs.](https://seocode.io/checks/meta-description-too-long)

- [06 · Meta description too short Info Descriptions under 70 characters are too brief to convey page value.](https://seocode.io/checks/meta-description-too-short)

[All 29 meta tags checks](https://seocode.io/checks#meta)

## Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Get a website audit](https://seocode.io/audit?from=checks-cta)

Free for public repositories · no credit card
