vendor/drift · vendor documented
Drift loaders put the embed ID in the path
Drift documents the loader as /include/{timestamp}/{embedId}.js. The first segment is a five-minute cache window. The second is the embed ID from drift.load.
The embed ID is the second path segment
A URL that is only /include/{timestamp}.js has no embed ID.
What this pack matches
Rules
Codes are stable. A finding in CI, MCP, or the playground lands on the same id.
| Field | Required | What it checks | Rule ids | Source |
|---|---|---|---|---|
embed_id |
required | It is the Drift embed ID. Drift documents the loader as js.driftt.com/include/{timestamp}/{embedId}.js and drift.load('embedId'). Fix: Copy the snippet from Drift Install so the path ends in /{embedId}.js. | vendor.drift.param.embed_id.missingvendor.drift.param.embed_id.empty |
docs |
cache_bust |
required | It is the cache window Drift computes as Math.ceil(Date.now()/300000)*300000. The published snippet puts it in the path before the embed ID. Fix: Keep the timestamp segment the Drift snippet writes. It is not the embed ID. | vendor.drift.param.cache_bust.missingvendor.drift.param.cache_bust.emptyvendor.drift.param.cache_bust.invalid |
docs |
Validate a payload
pixellint validate url "$ARTIFACT" --rulepack vendor/drift
Try this failing payload in the playground. Drift loader missing embed ID.
https://js.driftt.com/include/1700000000000/.js
cargo install pixellint
·
npm install pixellint