Lighthouse: HTML Report: support deep linking

Created on 27 Nov 2018  路  5Comments  路  Source: GoogleChrome/lighthouse

For web.dev, we have the request for users to be able to deep link into sections of the HTML report. Each section, currently has an id=AUDIT_NAME, but loading the report does not always scroll properly to that section during page load or the section is hidden under by the top fixed banner. Also need to expand the details element when users are deep linking into a section.

Example:
https://lighthouse-dot-webdotdevsite.appspot.com/lh/html?url=https://ericbidelman.com#errors-in-console

Items to handle:

  • [x] include ids on all audit line items
  • [ ] detect anchor target on page load and delay (smooth) scroll to section. Include offset so section isn't hidden under top nav.
  • [ ] auto-expand the audit's details dropdown so users can drill right in.

b/119882633

P3 report web.dev

Most helpful comment

Does web.dev include report-ui-features.js? If so, take a look at #5915 and see if it fits what you need :)

All 5 comments

Does web.dev include report-ui-features.js? If so, take a look at #5915 and see if it fits what you need :)

Sounds like you want #5915 :)

Include offset so section isn't hidden under top nav

Is still an issue, though

5915 #5915 #5915 #5915 :p

Just wanted to add a comment that yes, this is something that we still need for web.dev-- the ability to deep link into a specific audit result.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

codepodu picture codepodu  路  3Comments

mohanrohith picture mohanrohith  路  3Comments

johnfrancisli picture johnfrancisli  路  3Comments

etelai picture etelai  路  3Comments

motiejuss picture motiejuss  路  3Comments