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

[NuGet.org Bug]: Changing selected Version briefly flickers to the README tab #9985

Open
donnie-msft opened this issue Jun 4, 2024 · 1 comment

Comments

@donnie-msft
Copy link
Contributor

Impact

It bothers me. A fix would be nice

Describe the bug

When looking at a package (eg, https://www.nuget.org/packages/Newtonsoft.Json/13.0.2) and changing the selected version, I noticed a brief flickering of the screen. What is shown is the image that's in the README tab for this package. I also can tell that the README tab is briefly shown as selected before going back to the Versions tab.

Repro Steps

  1. https://www.nuget.org/packages/Newtonsoft.Json/13.0.2
  2. Select a different version
  3. Observe the brief appearance of the README tab's content

Expected Behavior

Changing versions should not switch tabs.

Screenshots

galleryFlickeringReadmeTab.mp4

Additional Context and logs

No response

@joelverhagen
Copy link
Member

This is because of the way we cache and evaluate the currently selected tab. I believe it is done "on document ready" which is some time after the first paint on page load. It should be possible to use the local storage or anchor text to determine the current tab during initial render, but it may be a non-trivial change to the scripts on this page.

This is a legitimate issue, as the recording shows (thanks for that @donnie-msft) but I think the priority may be low compared to the other efforts our team is currently involved in.

I will mark this as a good first issue. I think this could be handled with relative ease by a community member, if they want to give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants