Skip to content

Commit

Permalink
ci: update reference docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 authored Sep 13, 2024
1 parent 0f2bf99 commit 1108ed8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/docs/en/reference/configuration-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ This option is scoped to the entire project, to only disable the toolbar for you
</p>

Enable prefetching for links on your site to provide faster page transitions.
(Enabled by default on pages using the `<ViewTransitions />` router. Set `prefetch: false` to opt out of this behaviour.)
(Enabled by default on pages using the `<ClientRouter />` router. Set `prefetch: false` to opt out of this behaviour.)

This configuration automatically adds a prefetch script to every page in the project
giving you access to the `data-astro-prefetch` attribute.
Expand All @@ -766,7 +766,7 @@ See the [Prefetch guide](/en/guides/prefetch/) for more information.
</p>

Enable prefetching for all links, including those without the `data-astro-prefetch` attribute.
This value defaults to `true` when using the `<ViewTransitions />` router. Otherwise, the default value is `false`.
This value defaults to `true` when using the `<ClientRouter />` router. Otherwise, the default value is `false`.

```js
prefetch: {
Expand Down Expand Up @@ -1454,7 +1454,7 @@ import Avatar from '~/components/Avatar.astro';

The outer page will be rendered, either at build time (`hybrid`) or at runtime (`server`) with the island content omitted and a `<script>` tag included in its place.

After the page loads in the browser, the script tag will replace itself with the contents of the island by making a request.
After the page loads in the browser, the script tag will replace itself with the the contents of the island by making a request.

Any Astro component can be given the `server: defer` attribute to delay its rendering. There is no special API and you can write `.astro` code as normal:

Expand Down

0 comments on commit 1108ed8

Please sign in to comment.