FREEFirst project with us? Your landing page design is on the house.See the offer

Glossary · Astro and headless

What is Hydration?

By Abdul QuadirUpdated Nov 2026
Hydrationnoun · Astro and headless

Hydration is when JavaScript takes over HTML that was already rendered, attaching the logic that makes it interactive. The page looks ready first, then becomes usable.

Hydration is when JavaScript takes over HTML that was already rendered, attaching the logic that makes it interactive. The page looks ready first, then becomes usable.

Hydration, explained

Frameworks such as React can render a page to HTML on the server. The browser shows that quickly. It then downloads the JavaScript, runs the components again and connects click handlers.

The cost can be high. A page may look finished but not respond until hydration ends, and all that JavaScript has to run on the visitor's device. On slower phones this hurts responsiveness, measured by INP.

Several ideas aim to reduce this. Astro's islands hydrate only the interactive parts and leave the rest as plain HTML. React Server Components keep some components out of the browser.

You may also see hydration errors in a console. These happen when the server HTML and the first browser render do not match, for example with dates or random values.

In our work

How Kookies uses it

On Astro builds we ship most pages as plain HTML and hydrate only the parts that truly need JavaScript, to keep pages light.

FAQs

Hydration
questions.

Abdul Quadir
Still have a question?Ask us directly. We reply within a day.
Book a callPick a timehello@kookies.io

No. Pages with no framework components have nothing to hydrate.

Components ship no JavaScript by default. You opt in per component with a client directive.

The browser has to download and run JavaScript before the page fully responds, which can be slow on phones.

Your turn

Let's kook
what you krave.

Hi Kookies, I need a built on . I'd love to launch . Reach me at
or book a callSent. We reply within one working day.