New issue
Advanced search Search tips

Issue 724290 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Sep 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

DevTools: coverage on inline scripts doesn't exclude HTML bytes

Project Member Reported by paulir...@chromium.org, May 18 2017

Issue description

e.g. on https://caltrainschedule.io/

Record the load and for the HTML document.. it'll say 0 unused bytes.
there's a veryy small inline script at the bottom. and it was all used! but the 66kb of the document is mostly HTML. 

so the "total" bytes and chart are misleading
 
Screen Shot 2017-05-18 at 3.14.58 PM.png
308 KB View Download

Comment 1 by caseq@chromium.org, May 18 2017

Labels: Needs-Feedback
This is by design -- for HTML files, the unused size shown is the sum of all unused CSS and JS and does not include anything else. We don't have data for actual HTML which generally should not be presumed entirely useless, so we don't want to confuse user by showing "red" for something that is not necessarily unused. We could in theory use third color for this, but we previously decided against that. If you have idea what's the right thing to do there, please let me know.

Comment 2 by caseq@chromium.org, Sep 22 2017

Status: WontFix (was: Assigned)
Let's reopen if we find a better way of handling this.

Sign in to add a comment