astro/packages
Kory Smith 9807e4dc22
Updates prefetch integration to add "only prefetch link on hover/mouseover/focus" option (#6585)
* modifies prefetch to add the option to only prefetch certain pages on hover

* adds new pages to the test website to showcase prefetch-intent functionality

* adds tests to verify prefetch-intent behavior

* adds changelog

* waits until networkidle to check if the prefetching worked instead of waiting on a specific url load

* allows intentSelector to be either a string or array of strings

* Revert "allows intentSelector to be either a string or array of strings"

This reverts commit b0268eb0d5.

* fixes the multiple selector logic and adds tests

* updates docs to include new prefetch-intent integration

* Update packages/integrations/prefetch/README.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/integrations/prefetch/README.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/integrations/prefetch/README.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update .changeset/little-cars-exist.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/integrations/prefetch/README.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-07 16:01:23 -04:00
..
astro [ci] release (#7578) 2023-07-06 23:16:08 +08:00
astro-prism Format markdown files (#7439) 2023-06-26 11:34:13 +08:00
astro-rss Bump dependency versions (#7477) 2023-06-26 11:38:16 +08:00
create-astro [ci] release (#7578) 2023-07-06 23:16:08 +08:00
integrations Updates prefetch integration to add "only prefetch link on hover/mouseover/focus" option (#6585) 2023-07-07 16:01:23 -04:00
internal-helpers [ci] release (#7449) 2023-06-27 08:42:46 -04:00
markdown feat: use typescript-eslint@v6's reworked configs (#7425) 2023-07-03 20:59:43 +08:00
telemetry feat: use typescript-eslint@v6's reworked configs (#7425) 2023-07-03 20:59:43 +08:00
underscore-redirects feat: use typescript-eslint@v6's reworked configs (#7425) 2023-07-03 20:59:43 +08:00
webapi Format markdown files (#7439) 2023-06-26 11:34:13 +08:00