← All scenarios

<script defer> in <head>

wire.js loaded with the "defer" attribute instead of "async". Defer is the safest install pattern for V1 — it tells the browser to download the script in parallel but run it only after the page is fully parsed and before the window.load event. That ordering guarantee means V1’s window.load listener will always be ready in time. Use this scenario as a sanity check that wire.js is reachable and working — both versions should pass.

Each side runs the same scenario in its own iframe. The iframes load independently, so you can see how each pixel version behaves under identical conditions.

How to test:
  1. Load the page and wait ~5 seconds.
  2. Compare the timing — wire.js should always land before window.load.
  3. Look at both pixel columns.
Expected: Both V1 and V2 fire reliably. If V1 fails here, something else is wrong (wrong URL, server returning the wrong script, network blocked) — not the race condition.
V1 · current pixel
Verdict
Initialising…
window.load
—
wire.js
—
pixel
—
Event timeline
  1. No events recorded yet…
Script tag for this scenario
<script type="text/javascript" defer src="https://staging-api.wire.spbx.app/wire.js?account_id=79&property_id=6a2111320c2dee2dc5548935"></script>
V2 · proposed fix
Verdict
Initialising…
window.load
—
wire.js
—
pixel
—
Event timeline
  1. No events recorded yet…
Script tag for this scenario
<script type="text/javascript" defer src="https://staging-api.wire.spbx.app/wire.js?pixel_id=6a211df10c2dee2dc5548936&account_id=79&property_id=6a2111320c2dee2dc5548935"></script>