x/pkgsite: large module pages are very slow to render #51564
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
UX
Issues that involve UXD/UXR input
Milestone
The datadog-api-client-go packagesite page is... enormous. The raw HTML over the wire from the server is over 21MB, and rendering performance is abysmal. It can take up to 25 seconds for the page to become fully responsive to input. Obviously, this is an outlier package, but even given that, there seems like plenty of room here for performance work.
I fired up the Chrome performance tooling to see if there was something obvious:
Nearly all the time is spent in "Recalculate Style", presumably because the browser is constantly re-flowing the page as more and more HTML gets thrown at it?
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/DataDog/datadog-api-client-go@v1.10.0/api/v1/datadog
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36
Screenshot
No rendering error, so screenshot isn't useful.
What did you do?
Load the page.
What did you expect to see?
Reasonable page-load times
What did you see instead?
An extremely-long rendering block.
The text was updated successfully, but these errors were encountered: