docs(home): records for the home first-load round (BUG-1127..1130); measurement script lint fix
Progress with before/after, T4 evidence (supportsImmutableAssets has no effect under self-hosted standalone) in BLOCKED.md, device checklist, changelog, board row to 待验收. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e2c3791fad
commit
856f611fcf
@@ -96,10 +96,7 @@ async function measureOnce() {
|
||||
if (/\/_next\/static\/.*\.js/.test(url) && m.params.initiator?.type === "parser") parserJs.add(m.params.requestId);
|
||||
if (/\.woff2/.test(url)) events.push([now(), `font request ${url.split("/").pop().split("?")[0]}`]);
|
||||
}
|
||||
if (m.method === "Network.loadingFinished") {
|
||||
const url = urls.get(m.params.requestId) ?? "";
|
||||
if (parserJs.has(m.params.requestId)) jsDone.push(now());
|
||||
}
|
||||
if (m.method === "Network.loadingFinished" && parserJs.has(m.params.requestId)) jsDone.push(now());
|
||||
if (m.method === "Page.domContentEventFired") events.push([now(), "DOMContentLoaded"]);
|
||||
if (m.method === "Page.loadEventFired") events.push([now(), "load"]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user