pakopress.dev — prebid · module swap · variant B

The ID5 Prebid module is configured immediately with a primary URL on cdn.id5-sync.com, under userSync.autoRefresh: true. If that load fails, the page resolves an alternate over DoH and reconfigures — with no explicit refresh call, because Prebid re-initialises any submodule whose config changed. Requires Prebid 10.0+; the dirty/new semantics shown here are 11.40+. Add ?mutate=1 to reuse the params object instead of rebuilding it, which is expected to do nothing.

Waiting for ID5…

Assertions

#checkexpectedactualverdict

Timeline


  

Setup

Module primary: …
Module alternate: …
Calls base: …
// 1. configure immediately, with autoRefresh so a changed config re-inits itself
pbjs.setConfig({ userSync: { autoRefresh: true, userIds: [{ params: params }] } });

// 2. on failure: reconfigure with a REBUILT params object. Mutating the old one
//    leaves deepEqual() equal, the container clean, and autoRefresh idle.
pbjs.setConfig({ userSync: { autoRefresh: true, userIds: [{ params: Object.assign({}, base, { externalModuleUrl: alt }) }] } });
// no refreshUserIds() call — Prebid picks the change up on its own
Primary
Fallback
params object

Requests made by this page

green = first-party · amber = ID5 edge · red = id5-sync.com · green row = alternate CDN

typehostpath