Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefetch on hover works in Chrome, not Firefox #21

Open
david-crespo opened this issue Oct 2, 2023 · 0 comments
Open

Prefetch on hover works in Chrome, not Firefox #21

david-crespo opened this issue Oct 2, 2023 · 0 comments

Comments

@david-crespo
Copy link
Contributor

This is reproducible locally, so that's nice.

Firefox

Red line is the prefetch request, which is aborted. Third from bottom is when I click, and the data is fetched again, taking the full 160ms instead of using the prefetched data.

image

Especially confusing is the fact that we seem to have a response for the aborted one, but it looks like malformed JSON. The working request on click has the same format and seems to work fine, so I'm guessing this is Remix's special format for responses with deferred data. I do think @augustuswm might be right in guessing that something funny might be going on with the deferred data. It should be easy to test this with the defer bit commented out.

image

Chrome

First request is when I hover over an RFD, second is when I click. The data are retrieved from a special browser cache for prefetches, and this is nearly instant.

image

@benjaminleonard benjaminleonard transferred this issue from another repository Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant