Repository navigation
Conversation
Signed-off-by: Ching-Wei Kang <[email protected]> (cherry picked from commit aa9e382)
Signed-off-by: Ching-Wei Kang <[email protected]> (cherry picked from commit 37cdc95)
Signed-off-by: Ching-Wei Kang <[email protected]> (cherry picked from commit 1dc03c3)
…ipt, only a preload link loads it, bounded-time test #1457 Signed-off-by: Nik Cubrilovic <[email protected]> (cherry picked from commit e0b82cf)
Signed-off-by: Nik Cubrilovic <[email protected]> (cherry picked from commit 1a844e4c9651222b1cabdb03f6dc8b6d31229440)
3 tasks done
nc9
force-pushed
the
fix/klaviyo-loader-recall-1457
branch
from
October 31, 2026 23:30
e0b82cf to
384a4ab
Compare
…g; bounded-time tests for tags holding many openers Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
October 31, 2026 23:45
|
Reviewed the diff (fingerprint, tests, docs, changelog). I found no blocking problems. The bounds are sound: each in-tag scan is capped at 65536 characters and stops at the next line-start tag, and the inline-loader body scan is capped at 16384 characters and stops at the next kept tag. The tests cover the hostile shapes. I did not run the suite myself.
|
This was referenced Oct 31, 2026
Merged
Contributor
Author
|
Landed in v0.0.153 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopts #1463 (William, #1457: restore Klaviyo loader recall) by cherry-pick with authorship preserved (three commits), plus two maintainer commits for the review findings. Refs #1457 (no auto-close); #1463 is closed with the new SHAs after the release.
Commits
fix(tech-detect): restore Klaviyo loader recall #1457(aa9e382a)src,data-src, preload link, inlineelement.src =loader, proxied collected URL; testsfix(tech-detect): bound Klaviyo loader scan #1457(37cdc95e)src; hostile-opener bound testsdocs(changelog): keep Klaviyo fix unreleased #1457(1dc03c38)[Unreleased]fix(tech-detect): klaviyo inline-loader scan stays inside its own script, only a preload link loads it, bounded-time test #1457docs(changelog): name the Klaviyo loader recall limits #1457fix(tech-detect): klaviyo in-tag scans stop at the next line-start tag; bounded-time tests for tags holding many openersMaintainer follow-ups
<script></script>took about 4 s here (8 MB 36 s) against about 0.1 s (1.3 s) after the fix. The body is bounded by the next kept tag at a line start; a bounded-time test (1 MB under 1.5 s) and a test that an empty script cannot claim the next script's assignment are added. William's per-line bound tests pass against this pattern.rel=preloadorrel=modulepreload(either side of thehref); a stylesheet, prefetch or relless link no longer counts.^<script\b[^>]{0,65536}and the link form) are tempered to stop at the next line-start<: one tag whose quoted attribute held thousands of line-start<scriptopeners took 23 s at 0.25 MB and 107 s at 1 MB for the Klaviyo patterns alone, and now 4 ms and 14 ms. Tests: two attribute-embedded openers inpattern-bounds, and a 1 MB bounded-time case for script and link tags (3 s bound).<pre>or JSON block, anelement.src = "..."on a non-script element and an assignment inside a block comment still count.Checks
tsgo clean in tech-detect; cli
format:checkand lint clean; detect-secrets clean; docsmake validate; all 17 tech-detect test files by path, 0 fail; the 23-bundle comparison (main vs this branch, inline and external, with and without script bodies) and the 19 real pages: 0 diffs; CHANGELOG guard clean. No skill, workflow, rule-id or package.json change. No version bump: draft for the next batch.