updating docs for default selector with ~=
This commit is contained in:
parent
0b9d47da73
commit
d7d271570f
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ The Astro Prefetch integration handles which links on the stie are prefetched an
|
|||
|
||||
<br/>
|
||||
|
||||
By default the prefetch script searches the page for any links with the `rel="prefetch"` attribute. This behavior can be changed in your `astro.config.*` file to use a custom query selector when finding prefetch links.
|
||||
By default the prefetch script searches the page for any links that include a `rel="prefetch"` attribute, ex: `<a rel="prefetch" />` or `<a rel="nofollow prefetch" />`. This behavior can be changed in your `astro.config.*` file to use a custom query selector when finding prefetch links.
|
||||
|
||||
<br/>
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ export interface PrefetchOptions {
|
|||
/**
|
||||
* Element selector used to find all links on the page that should be prefetched.
|
||||
*
|
||||
* @default "a[href][rel='prefetch']"
|
||||
* @default 'a[href][rel~="prefetch"]'
|
||||
*/
|
||||
selector?: string;
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue