Microsite

Microsite enforces performance best practices by not emitting any JavaScript by default - every byte of JavaScript is an explicit opt-in choice left to the developer.

JavaScript is, of course, essential for spec-compliant accessibility and other expected features. This is where Microsite's **Automatic Partial Hydration (APH)** comes into play.

### `withHydrate` Options **method** As a developer, you know exactly how your site is structured, so Microsite allows you to tweak how hydration occurs to optimize your specific use case. - `idle` (default) hydrates the component as soon as possible, when the browser executes [`requestIdleCallback`](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback) code. - `visible` hydrates the component as soon as it enters the viewport, via [`IntersectionObserver`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver).