astro/packages/integrations/prefetch/CHANGELOG.md
Fred K. Bot a59a27eb0c
[ci] release (#3733)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 15:11:59 +00:00

776 B

@astrojs/prefetch

0.0.2

Patch Changes

  • #3736 bd4dac0e Thanks @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

    import prefetch from '@astrojs/prefetch';
    export default {
      // ...
      integrations: [prefetch()],
    };
    
    <!-- Prefetch HTML and stylesheets for the /products page -->
    <a href="/products" rel="prefetch">All Products</a>