GoogleChrome / GoogleChrome/lighthouse

Incorporate sourceURL comments throughout report

Open
#11,334 0 comments 0 reactions 0 assignees View on GitHub
P3
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

Mostly laid out here: https://github.com/GoogleChrome/lighthouse/pull/11302#issuecomment-681206230

Scripts are heavily tied to network records. Developers can use `sourceURL` to better describe scripts (usually these scripts are inline or eval'd from an xhr). Currently we ignore `sourceURL`\* comments and always show the original url (for example: inline script with `sourceURL` comment will display as the document url for any audit that references the script).

If we could make `Link` details where `url` = the real URL and `text` = `sourceURL`, I think that'd be ideal.

\* except for inside font-size ...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.