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

Cache hover card responses #1093

Open
matthew-white opened this issue Dec 10, 2024 · 0 comments
Open

Cache hover card responses #1093

matthew-white opened this issue Dec 10, 2024 · 0 comments

Comments

@matthew-white
Copy link
Member

From #1067 (review):

What do you think of caching the response of hover requests until user navigates to another page/route? right now every time I hover on a link a request is sent.

I think this is a good idea. It's very possible that the user will hover over one resource, then move somewhere else, then return to hovering over the resource.

One thought I had is that we should consider putting a limit on the size of this cache. If the user has hovered over a bunch of resources on a single large page, we might not want to keep them all in memory. Maybe just the last 10 or 20 that the user has hovered over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🕒 backlog
Development

No branches or pull requests

1 participant