From 196340752a60a0be84b9bd797ae7ca8045aef3a1 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Sun, 11 Oct 2026 01:02:04 +0800 Subject: [PATCH] test: bound deferred Japanese catalog with poster controls --- scripts/verify-web-performance.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/verify-web-performance.mjs b/scripts/verify-web-performance.mjs index 435a6813..8ba15b4f 100644 --- a/scripts/verify-web-performance.mjs +++ b/scripts/verify-web-performance.mjs @@ -52,7 +52,8 @@ const allowedLargeChunkPattern = /^(?:vendor-(?:code-highlight|beautiful-mermaid // while retaining the initial preload budget and the checks below. const boundedDeferredChunks = [ { pattern: /^vendor~mathlive-loader-.*\.js$/, maxBytes: 850 * 1024 }, - { pattern: /^i18n-ja-.*\.js$/, maxBytes: 525 * 1024 }, + // Poster editing adds localized controls; the current catalog is ~527 KiB. + { pattern: /^i18n-ja-.*\.js$/, maxBytes: 530 * 1024 }, ]; const allowedLargeChunk = ({ name, size }) => allowedLargeChunkPattern.test(name) ||