Choosing the Right Client Directive for Astro Island Hydration
Learn how to choose between Astro's client:load, client:idle, client:visible, and client:only directives to optimize page performance and interactivity.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to choose between Astro's client:load, client:idle, client:visible, and client:only directives to optimize page performance and interactivity.
Astro’s Islands Architecture lets you ship only the JavaScript you need. Learn how to use client directives, share state between frameworks, and verify the result in a practical example.
Learn how Astro’s Islands Architecture lets you load JavaScript only when needed, using client:load, client:visible, and client:only directives to keep content‑heavy sites fast.
Astro’s Islands architecture lets you keep pages static and hydrate individual components with client directives. Learn how client:load, client:visible, and client:only work, with a practical example and common pitfalls.
A practical diagnostic guide for Astro sites where production builds serve raw images without srcset, featuring a cause table, ordered checks, and fixes.
Astro’s islands let you hydrate only the interactive parts of a page, keeping the rest static. This blog walks through the core concept, shows how to enable an island, explains the build‑time process, and covers trade‑offs and best practices.
Learn how Astro's Island Architecture uses partial hydration to eliminate unnecessary JavaScript, improving page load speeds by selectively hydrating interactive components.
Learn how Astro’s client:load directive hydrates a component immediately after the page loads, with a concrete React example, limits, and common pitfalls.
Learn how to enable Astro’s island architecture to hydrate only the components that need JavaScript, keeping the rest of the page static and performant.