atlassian-labs / react-resource-router

Configuration driven routing solution for React SPAs that manages route matching, data fetching and progressive rendering
https://atlassian-labs.github.io/react-resource-router
Apache License 2.0
198 stars 28 forks source link

Modify prefetch delay and support focus and pointer events to prefetch #169

Closed dalehurwitz closed 1 year ago

dalehurwitz commented 1 year ago

Changes:

  1. Modifies the prefetch delay from 300 -> 225. This new number is based on manual testing and is a best-guess.
  2. Extends prefetch="hover" to fire prefetch on focus and pointerDown events. This improves the prefetch experience:
    • On pointerDown the prefetch will be fired immediately rather than waiting for the setTimeout to complete
    • Browser tests (e.g. Cypress, Selenium) will be able to fire the prefetch when using their respective .click methods
atlassian-cla-bot[bot] commented 1 year ago

Hooray! All contributors have signed the CLA.