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

x/pkgsite: search input rendering delay on initial load #40857

Closed
myitcv opened this issue Aug 18, 2020 · 5 comments
Closed

x/pkgsite: search input rendering delay on initial load #40857

myitcv opened this issue Aug 18, 2020 · 5 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite

Comments

@myitcv
Copy link
Member

myitcv commented Aug 18, 2020

What is the URL of the page with the issue?

https://pkg.go.dev/

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.59 Safari/537.36

Screenshot

Screen Shot 2020-08-18 at 11 35 02

What did you do?

  • Open a new tab in Chrome
  • Type pkg., and then hit Enter to accept the selected Chrome suggestion of https://pkg.go.dev
  • As soon as the page loads and the focus is placed in the search box, start typing to find the module/package I am looking for

What did you expect to see?

The text I am typing in the search box to appear immediately

What did you see instead?

A noticeable lag in the text being rendered - it's as if the page load is blocked/waiting on something

See repro: https://youtu.be/nkPq6Sbm2wY

Note that this delay is most notable when I have a scaled display setting:

Screen Shot 2020-08-18 at 11 48 58

@myitcv myitcv added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite labels Aug 18, 2020
@gopherbot gopherbot added this to the Unreleased milestone Aug 18, 2020
@julieqiu
Copy link
Member

/cc @jamalc

@myitcv
Copy link
Member Author

myitcv commented Aug 27, 2020

FWIW I also notice a delay when visiting https://golang.org/ref/spec and once the page is loaded hitting Command-f to search within the page: Chrome appears to hang before displaying the search box.

@julieqiu julieqiu modified the milestones: Unreleased, pkgsite/frontend Aug 27, 2020
@myitcv
Copy link
Member Author

myitcv commented Aug 29, 2020

This could well be related to #40959

@myitcv
Copy link
Member Author

myitcv commented Sep 7, 2020

More details: I can't replicate this in incognito mode.

@myitcv
Copy link
Member Author

myitcv commented Sep 23, 2020

As of today, using:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.42 Safari/537.36

I cannot replicate this... which is strange... but great news!

I'm guessing this is the result of a change on the Chrome or pkgsite side. Either way, I'm happy again!

Hence, I will close.

@myitcv myitcv closed this as completed Sep 23, 2020
@golang golang locked and limited conversation to collaborators Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite
Projects
None yet
Development

No branches or pull requests

3 participants