diff options
author | 2022-06-28 08:11:59 -0700 | |
---|---|---|
committer | 2022-06-28 15:11:59 +0000 | |
commit | a59a27eb0c098c23bdc1684a1c4284d517d3dc17 (patch) | |
tree | c2cb9c68e5ad6646aa4f09caca24d5bb898fcdf8 /packages/integrations/prefetch | |
parent | fb9ef4019bd5aec99972cac9bb82f2b6c259292c (diff) | |
download | astro-a59a27eb0c098c23bdc1684a1c4284d517d3dc17.tar.gz astro-a59a27eb0c098c23bdc1684a1c4284d517d3dc17.tar.zst astro-a59a27eb0c098c23bdc1684a1c4284d517d3dc17.zip |
[ci] release (#3733)astro@1.0.0-beta.58@astrojs/telemetry@0.2.0@astrojs/tailwind@0.2.2@astrojs/sitemap@0.2.3@astrojs/prefetch@0.0.2@astrojs/netlify@0.4.7@astrojs/deno@0.1.7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/prefetch')
-rw-r--r-- | packages/integrations/prefetch/CHANGELOG.md | 22 | ||||
-rw-r--r-- | packages/integrations/prefetch/package.json | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/packages/integrations/prefetch/CHANGELOG.md b/packages/integrations/prefetch/CHANGELOG.md new file mode 100644 index 000000000..82fa0154d --- /dev/null +++ b/packages/integrations/prefetch/CHANGELOG.md @@ -0,0 +1,22 @@ +# @astrojs/prefetch + +## 0.0.2 + +### Patch Changes + +- [#3736](https://github.com/withastro/astro/pull/3736) [`bd4dac0e`](https://github.com/withastro/astro/commit/bd4dac0e1a8598045f10c42faf08abff96ed6766) Thanks [@tony-sull](https://github.com/tony-sull)! - 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> + ``` diff --git a/packages/integrations/prefetch/package.json b/packages/integrations/prefetch/package.json index 2fdf7cf2c..29d277fed 100644 --- a/packages/integrations/prefetch/package.json +++ b/packages/integrations/prefetch/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/prefetch", "description": "Faster page navigations by prefetching links when the browser is idle.", - "version": "0.0.1", + "version": "0.0.2", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", |