Open brendankenny opened 1 year ago
discussion: NON_NETWORK_SCHEMES seems like a win. feels like we can add it there and everything is great.
The "Chrome extensions negatively affected this page's load performance" message wont get triggered in this case but.. should? Is there something else that quantifies the runtime cost of loading these that we can use as signal?
followup after #15022
The "Chrome extensions negatively affected this page's load performance" message wont get triggered in this case but.. should? Is there something else that quantifies the runtime cost of loading these that we can use as signal?
Ummmm
We have something to do here.. LIke.. probably consider parseCompile time too..
But the more that @brendankenny and I look at https://github.com/GoogleChrome/lighthouse/blob/f6171e018bd17977ad276cdaceb6765e927e7c6c/core/audits/bootup-time.js#L82-L109 the less it makes sense. it was probably my fault? iunno.
From: https://social.ayco.io/@ayo/109625339833530015
If you install the React Developer Tools extension, you can end up with multiple entries from the extension in the unused javascript table.
These are legitimate network entries, the extension really is injecting script tags into the page to load resources from the extension's files
And they show up in the network panel as well, even on non-react pages:
Two issues:
The opportunity savings look like they're overestimated. There's real impact (that 427kB script took 36ms to presumably load from SSD and cross processes on my machine, and from the user's screenshot there could be many more files loaded in some situations), but these files are being treated as loading from network instead of from disk due to
chrome-extension
not being included inNON_NETWORK_SCHEMES
. Seems like not an issue to add it to the set (I assume it's just been an oversight), but would need to double check other callers ofisNonNetworkProtocol
.Because this is just network activity with minimal js tasks (at least on my machine), you don't get an extension warning at the top of the report since the "Chrome extensions negatively affected this page's load performance" is based just on extension-caused task length. It's possible these files don't have an enormous negative effect on page load, but if they're big enough to show up in the audit after fixing the non-network url handling, there should probably be a warning explaining things (maybe time to consider implementing that TODO)
cc @bramus