The tag that tests your patience before it tests your users

The classic client-side A/B testing setup looks harmless. Drop a snippet from your testing tool into the <head>, draw your variants in a visual editor, hit publish. No developer needed, no deploy, live in an afternoon.

Then you watch a real page load on a mid-range phone on 4G and you see it: the original heading paints, sits there for a beat, and then jumps to the variant. That flash — the flicker of original content, or FOOC — is the visible symptom of a deeper problem. And the deeper problem is corrupting your results, not just annoying your users.

This article is about where the experimentation layer should live: in the browser after the page has loaded, or at the edge before the page is ever sent. The short version is that the edge wins on almost every axis that matters, and the only reasons to stay client-side are convenience and inertia.

How client-side testing actually works

A client-side tool runs after the browser has already received and started rendering the original page. The sequence is roughly:

  1. Browser requests the page; server returns the original HTML.
  2. Browser starts parsing and painting — the user sees version A.
  3. The testing script loads (often render-blocking, to try to hide the flicker).
  4. The script decides which variant this user is in.
  5. JavaScript rewrites the DOM to draw version B over the top.

Every one of those steps costs time, and steps 2 and 5 fight each other. To hide the flicker, tools inject an “anti-flicker snippet” that hides the whole page until the variant decision is made — trading a visible flash for an invisible blank screen. You haven’t removed the delay; you’ve just moved it somewhere the user feels as slowness instead of seeing as a jump.

The four real costs of testing in the browser

1. Flicker corrupts your sample, not just the optics

FOOC isn’t only ugly. When a user in the variant arm sees the control for 300ms and then the treatment, they’ve been exposed to both. When the anti-flicker snippet blanks the page instead, some users bounce on the white screen before they ever see either version — and those bounced users are disproportionately the ones on slow devices and slow connections. Your test arms quietly diverge in composition before the experiment has measured anything, which is the same audience-composition failure that makes revenue results untrustworthy, manufactured by your own tooling.

2. It taxes the exact metric you’re trying to improve

Render-blocking test scripts and anti-flicker snippets hit Largest Contentful Paint and Interaction to Next Paint directly. You are slowing the page down in order to run experiments that are usually trying to lift conversion — and page speed is itself one of the most reliable conversion levers there is. It’s self-defeating: the measurement apparatus degrades the thing being measured. Worse, if a slow variant loses, you can’t tell whether the idea was bad or whether the 3 kilobytes of blocking JavaScript that drew it was the problem.

3. It’s invisible to search engines and increasingly to AI crawlers

Googlebot renders JavaScript, but on its own schedule and budget, and many AI crawlers don’t execute JS meaningfully at all. A variant painted entirely by client-side JS may simply never be seen by a crawler — which is fine if you only ever test cosmetic changes, and a genuine SEO risk the moment you start testing headings, copy, internal links or anything that carries ranking or citation signal.

4. It breaks on the users you most want to keep

Ad blockers and privacy extensions block many testing scripts outright. Users with those installed either see only the control or get an inconsistent experience — and they’re systematically different from users who don’t block, so again your sample skews.

How edge testing works instead

Edge experimentation moves the variant decision upstream of the browser, into a worker running in the CDN’s points of presence — for us, Cloudflare Workers. The sequence becomes:

  1. Browser requests the page.
  2. The request hits the edge worker before it reaches (or instead of reaching) the origin.
  3. The worker reads or sets a stable assignment cookie, decides the variant, and either injects/rewrites the HTML or serves a rewritten cached page.
  4. The browser receives the final, correct HTML for that user’s variant — first paint, no rewrite.

There is no version A to flash away from, because version A was never sent. The user in the treatment arm receives the treatment as the original document. Flicker is not “reduced” — it is structurally impossible.

What the edge buys you

  • No flicker, no anti-flicker blanking. The variant is the page. First contentful paint is already correct.
  • No client-side speed tax. The decision happens in single-digit milliseconds at a PoP geographically near the user, in parallel with work you were doing anyway. No render-blocking script in the critical path.
  • Crawlable variants. Because the variant is in the delivered HTML, search engines and AI crawlers see exactly what users see — you can test content, not just colours, without hiding it from the systems that read your pages.
  • Stable, honest assignment. Bucketing happens server-side against a cookie the worker controls, so a visitor stays in one arm across pages and sessions for the life of the test. That stability is a precondition for being able to stop a test honestly — your sample isn’t churning underneath you.
  • Ad-blocker resilience. There’s no third-party script for a blocker to strip; the logic ran before the response left the edge.

The bit everyone gets wrong: caching

Here’s the catch that makes or breaks an edge setup. A CDN’s whole job is to serve one cached copy of a page to everybody. An A/B test’s whole job is to serve different copies to different people. Naively combine them and you get chaos: whichever variant lands in the cache first gets served to all users regardless of their assignment, and your split collapses to 100/0.

The fix is to make the cache variant-aware — to include the assignment in the cache key so each arm caches independently, while still getting a cache hit within its arm. Get this right and you keep both the performance of a fully cached page and a clean experiment. Get it wrong and you either destroy your cache hit rate (serving everything dynamically) or destroy your experiment (serving one variant to all). This is fiddly enough, and important enough, that it has its own detailed walkthrough on caching server-side tests on Cloudflare — read that before you ship anything to production.

What you trade for it

Edge testing isn’t free, and it’s honest to name the costs:

  • It needs engineering. There’s no purely visual, no-code path that a marketer can use unaided. Someone has to write or configure the worker logic. The upside is that this forces experiments to be treated as real changes with review and rollback, which is why serious CRO is more of an engineering discipline than a marketing one.
  • Visual “just drag the button” edits are harder. Edge rewrites favour structured changes — swapping content, redirecting, serving a cloned page — over freehand visual tweaks. In practice this is a feature: it nudges you towards testing meaningful changes rather than pixel nudges.
  • You own the caching correctness. As above — the cache-key discipline is on you, not abstracted away by a vendor tag.

When client-side is still fine

Edge isn’t dogma. If you’re testing a genuinely cosmetic change well below the fold, on a low-traffic internal tool, where speed and SEO are irrelevant and you need it live in ten minutes — a client-side tool is a perfectly reasonable choice. The flicker and speed costs are real but bounded, and the convenience is real too.

The line to draw is this: the moment a test touches above-the-fold content, anything a crawler should see, or anything where the speed penalty could swing the result, it belongs at the edge. Which, for most commercially important tests, is most of them.

The bottom line

Client-side testing optimises for time-to-launch. Edge testing optimises for the validity of the result and the experience of the user — the two things the experiment actually exists to protect. You pay for that with engineering effort and cache discipline, and on any test that matters, it’s a trade worth making every time.


Conversion Workers is our edge experimentation stack on Cloudflare — variant assignment at the PoP, variant-aware caching handled correctly, and crawlable, flicker-free variants as the default rather than something you fight the tooling to achieve. If your current tests flash, blank, or mysteriously fail to reproduce, the test layer is a good place to start looking.