diff --git a/README.md b/README.md index f615c5856..98287d00e 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,14 @@ npm install astro TODO: astro boilerplate +### 💧 Partial Hydration + +By default, Astro outputs zero client-side JS. If you'd like to include an interactive component in the client output, you may use any of the following techniques. + +- `MyComponent:load` will render `MyComponent` on page load +- `MyComponent:idle` will use `requestIdleCallback` to render `MyComponent` as soon as main thread is free +- `MyComponent:visible` will use an `IntersectionObserver` to render `MyComponent` when the element enters the viewport + ## 🧞 Development Add a `dev` npm script to your `/package.json` file: diff --git a/examples/snowpack/astro/pages/guides.astro b/examples/snowpack/astro/pages/guides.astro index f3d8d7179..f3571d231 100644 --- a/examples/snowpack/astro/pages/guides.astro +++ b/examples/snowpack/astro/pages/guides.astro @@ -72,10 +72,7 @@ let communityGuides;