summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Tony Sullivan <tony.f.sullivan@outlook.com> 2022-06-27 21:13:18 +0000
committerGravatar GitHub <noreply@github.com> 2022-06-27 21:13:18 +0000
commitbd4dac0e1a8598045f10c42faf08abff96ed6766 (patch)
tree85265c28f3ee5e30a21698b0ae7b10dfb936f9f5
parent0bcc969cd4afff37d11560fc6e6f1c7001fcefd8 (diff)
downloadastro-bd4dac0e1a8598045f10c42faf08abff96ed6766.tar.gz
astro-bd4dac0e1a8598045f10c42faf08abff96ed6766.tar.zst
astro-bd4dac0e1a8598045f10c42faf08abff96ed6766.zip
Add missing changeset for @astrojs/prefetch (#3736)
-rw-r--r--.changeset/lovely-radios-grin.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/.changeset/lovely-radios-grin.md b/.changeset/lovely-radios-grin.md
new file mode 100644
index 000000000..6bf7ad719
--- /dev/null
+++ b/.changeset/lovely-radios-grin.md
@@ -0,0 +1,19 @@
+---
+'@astrojs/prefetch': patch
+---
+
+Adds a new `@astrojs/prefetch` integration with the goal of adding near-instant page navigation for Astro projects. HTML and CSS for visible links marked with `rel="prefetch"` will be preloaded in the browser when the browser is idle.
+
+__astro.config.mjs__
+```js
+import prefetch from '@astrojs/prefetch';
+export default {
+ // ...
+ integrations: [prefetch()],
+}
+```
+
+```html
+<!-- Prefetch HTML and stylesheets for the /products page -->
+<a href="/products" rel="prefetch">All Products</a>
+```