<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: EvolveAB Admin</title>
    <description>The latest articles on DEV Community by EvolveAB Admin (@evolveab).</description>
    <link>https://dev.to/evolveab</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4243363%2F826e3c7d-b32f-487a-9d1f-266292be7ba3.png</url>
      <title>DEV Community: EvolveAB Admin</title>
      <link>https://dev.to/evolveab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/evolveab"/>
    <language>en</language>
    <item>
      <title>A/B testing tools for the Next.js App Router, compared (2026)</title>
      <dc:creator>EvolveAB Admin</dc:creator>
      <pubDate>Fri, 27 Nov 2026 15:00:00 +0000</pubDate>
      <link>https://dev.to/evolveab/ab-testing-tools-for-the-nextjs-app-router-compared-2026-4p70</link>
      <guid>https://dev.to/evolveab/ab-testing-tools-for-the-nextjs-app-router-compared-2026-4p70</guid>
      <description>&lt;p&gt;We make one of the tools on this list, so read it with that in mind. We stuck to what each vendor documents, linked a source for every claim and left out any number we couldn't confirm on the vendor's own site. Everything was last checked on November 7, 2026; if something has changed, tell us and we'll fix it.&lt;/p&gt;

&lt;p&gt;For a Next.js app, the feature list matters less than where the variant gets decided. Decide it in the browser after the page loads and you either flash the original before the variant appears or hide the page until a script runs (we wrote about &lt;a href="https://evolveab.com/blog/the-anti-flicker-tax" rel="noopener noreferrer"&gt;what that does to LCP&lt;/a&gt;). Decide it on the server before rendering and neither happens. Our &lt;a href="https://evolveab.com/guides/nextjs-ab-testing" rel="noopener noreferrer"&gt;guide to A/B testing in the App Router&lt;/a&gt; walks through the server-side setup step by step, including a version you can build without any vendor.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short table
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Where the variant is decided&lt;/th&gt;
&lt;th&gt;Where event data lives&lt;/th&gt;
&lt;th&gt;Stats&lt;/th&gt;
&lt;th&gt;Public price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;GrowthBook&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SDKs, incl. a Vercel Flags SDK provider&lt;/td&gt;
&lt;td&gt;Your warehouse (or their managed one)&lt;/td&gt;
&lt;td&gt;Bayesian or frequentist; sequential and CUPED on Pro&lt;/td&gt;
&lt;td&gt;Free (3 users); Pro $40/seat/month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Croct&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Next.js SDK, server-side&lt;/td&gt;
&lt;td&gt;Croct's cloud&lt;/td&gt;
&lt;td&gt;Bayesian&lt;/td&gt;
&lt;td&gt;Free to 10K MAU; Growth from $100/month (annual)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Vercel Flags&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Flags SDK, &lt;code&gt;precompute&lt;/code&gt; in the proxy&lt;/td&gt;
&lt;td&gt;Vercel&lt;/td&gt;
&lt;td&gt;None built in; pair with an analytics partner&lt;/td&gt;
&lt;td&gt;Usage-based&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PostHog&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SDK; server bootstrap avoids flicker&lt;/td&gt;
&lt;td&gt;PostHog's cloud&lt;/td&gt;
&lt;td&gt;Bayesian or frequentist&lt;/td&gt;
&lt;td&gt;First 1M flag requests/month free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Optimizely&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Head snippet (Web); server SDKs (Feature Exp.)&lt;/td&gt;
&lt;td&gt;Optimizely's cloud&lt;/td&gt;
&lt;td&gt;Sequential (mSPRT) with false discovery rate control&lt;/td&gt;
&lt;td&gt;Not public&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;VWO (Wingify)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SmartCode script&lt;/td&gt;
&lt;td&gt;VWO's cloud&lt;/td&gt;
&lt;td&gt;Bayesian with sequential correction&lt;/td&gt;
&lt;td&gt;Not listed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Kameleoon&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Client engine after hydration, with anti-flicker CSS&lt;/td&gt;
&lt;td&gt;Kameleoon's cloud&lt;/td&gt;
&lt;td&gt;Not checked&lt;/td&gt;
&lt;td&gt;Not public&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AB Tasty&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Script, or Flagship server SDK&lt;/td&gt;
&lt;td&gt;AB Tasty's cloud&lt;/td&gt;
&lt;td&gt;Not checked&lt;/td&gt;
&lt;td&gt;Sales-led&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;evolveAB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Next.js proxy, from a local signed bundle&lt;/td&gt;
&lt;td&gt;Your Postgres; we get aggregates only&lt;/td&gt;
&lt;td&gt;Bayesian; Thompson-sampling bandits&lt;/td&gt;
&lt;td&gt;30-day free trial; Pro $149/site/month&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Built for developers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GrowthBook&lt;/strong&gt; is open source and warehouse-native: it runs experiment analysis as SQL against your own data warehouse, which suits teams that already have one. Every plan gets Bayesian and frequentist engines, Pro and up add sequential testing and CUPED (&lt;a href="https://www.growthbook.io/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;), and there's a provider for Vercel's Flags SDK (&lt;a href="https://blog.growthbook.io/vercel" rel="noopener noreferrer"&gt;GrowthBook blog&lt;/a&gt;). It's strongest on feature flags and statistical depth, and with a warehouse and a data team behind you it's a serious choice. We go through it point by point in &lt;a href="https://evolveab.com/vs/growthbook" rel="noopener noreferrer"&gt;evolveAB vs GrowthBook&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Croct&lt;/strong&gt; is the one to look at for personalization. It has an official Next.js SDK with an &lt;code&gt;npx croct@latest init&lt;/code&gt; setup and a Vercel integration, and it pairs content personalization with testing. Its pricing is public, which we appreciate: free up to 10,000 monthly active users, then Growth from $100/month billed annually (&lt;a href="https://croct.com/pricing.md" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Vercel Flags&lt;/strong&gt; went generally available on April 16, 2026 (&lt;a href="https://community.vercel.com/t/vercel-flags-is-now-generally-available/38589" rel="noopener noreferrer"&gt;Vercel community&lt;/a&gt;). The Flags SDK's &lt;code&gt;precompute&lt;/code&gt; pattern serves static variants from the proxy. That's the right serving model (our static mode works the same way), but Flags has no stats engine: you assign with Flags and analyze somewhere else (&lt;a href="https://evolveab.com/vs/vercel-flags" rel="noopener noreferrer"&gt;evolveAB vs Vercel Flags&lt;/a&gt; has the detail).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PostHog&lt;/strong&gt; builds experiments on its feature flags and analyzes them with Bayesian or frequentist methods (&lt;a href="https://posthog.com/docs/experiments/start-here" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). You can bootstrap flags from the server so the first render already has the right variant. If PostHog is your product analytics already, it's the obvious place to start; &lt;a href="https://evolveab.com/vs/posthog" rel="noopener noreferrer"&gt;evolveAB vs PostHog&lt;/a&gt; covers where the two differ.&lt;/p&gt;

&lt;h2&gt;
  
  
  The visual-editor suites
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Optimizely&lt;/strong&gt;, &lt;strong&gt;VWO&lt;/strong&gt; (now part of Wingify, after the merger with AB Tasty announced in January 2026), &lt;strong&gt;Kameleoon&lt;/strong&gt; and &lt;strong&gt;AB Tasty&lt;/strong&gt; grew up around a script on the page and an editor for marketers, with the data in the vendor's cloud. Several now document a server-side path as well. Optimizely has server SDKs and Performance Edge, and AB Tasty has a guide to avoiding flicker with Next.js SSR through its Flagship SDK (&lt;a href="https://docs.abtasty.com/server-side/concepts/jamstack/avoid-flickering-with-nextjs-ssr" rel="noopener noreferrer"&gt;AB Tasty docs&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Their App Router docs show where the default path still lands, though. Optimizely's React SSR guide says to run experiment code after hydration and warns that flicker may occur (&lt;a href="https://docs.developers.optimizely.com/web-experimentation/docs/react-server-side-rendering-and-hydration" rel="noopener noreferrer"&gt;Optimizely docs&lt;/a&gt;); Kameleoon's Next.js guide does the same and adds anti-flicker CSS (&lt;a href="https://docs.kameleoon.com/developer-docs/web-experimentation/implementation-and-deployment/implementation-with-nextjs" rel="noopener noreferrer"&gt;Kameleoon docs&lt;/a&gt;). These are mature products, and Optimizely's Stats Engine is especially well documented. None of the four publishes prices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where evolveAB fits
&lt;/h2&gt;

&lt;p&gt;We built evolveAB for a Next.js App Router site that wants server-rendered tests, a results page a marketer can read and an AI that keeps writing new challengers. The proxy decides the variant without a network call. Raw events stay in your Postgres, and our cloud receives &lt;a href="https://evolveab.com/blog/four-numbers-per-arm" rel="noopener noreferrer"&gt;four sums per variant&lt;/a&gt;, never a visitor row. Results are Bayesian, bandits use Thompson sampling, and every AI suggestion passes &lt;a href="https://evolveab.com/blog/five-checks-before-ai-copy-goes-live" rel="noopener noreferrer"&gt;five checks&lt;/a&gt; before a person sees it.&lt;/p&gt;

&lt;p&gt;What we don't do yet:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pages Router. We're App Router only (Next.js 15.5+, 16 recommended).&lt;/li&gt;
&lt;li&gt;Running without Postgres. You need a database, though your app's existing one works.&lt;/li&gt;
&lt;li&gt;Feature flags. We test UI regions, not code paths.&lt;/li&gt;
&lt;li&gt;Warehouse-native analysis. SQL goals against BigQuery or Snowflake aren't built.&lt;/li&gt;
&lt;li&gt;A track record. Sign-up opened in November 2026, so there are no large customers or case studies yet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you need flags across a large codebase and already have a warehouse, look at GrowthBook first. If you want personalization driven by a headless CMS, look at Croct. And if you're on Vercel Flags and only need the statistics, that's a gap we fill; the &lt;a href="https://evolveab.com/docs/quickstart" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt; takes about 30 minutes.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://evolveab.com/blog/nextjs-ab-testing-tools-compared" rel="noopener noreferrer"&gt;Evolve blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>abtesting</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Bandit or fixed split? How to pick when your site doesn't get much traffic</title>
      <dc:creator>EvolveAB Admin</dc:creator>
      <pubDate>Fri, 20 Nov 2026 15:00:00 +0000</pubDate>
      <link>https://dev.to/evolveab/bandit-or-fixed-split-how-to-pick-when-your-site-doesnt-get-much-traffic-3b2j</link>
      <guid>https://dev.to/evolveab/bandit-or-fixed-split-how-to-pick-when-your-site-doesnt-get-much-traffic-3b2j</guid>
      <description>&lt;p&gt;Every experiment in evolveAB is one of two kinds, and you can't change the choice once it starts. An &lt;strong&gt;A/B/n test&lt;/strong&gt; splits traffic evenly and keeps it that way. A &lt;strong&gt;bandit&lt;/strong&gt; starts even and then moves traffic toward whichever variant is doing better.&lt;/p&gt;

&lt;p&gt;Bandits sound like the obvious pick, since why keep sending half your visitors to a loser? But they answer a different question, and on a site with modest traffic the difference shows up fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring versus earning
&lt;/h2&gt;

&lt;p&gt;A fixed split is for &lt;strong&gt;measuring&lt;/strong&gt;. Every arm gets the same share for the whole test, so at the end you have a fair estimate for each variant, losers included. If you need to know whether the new pricing copy is 4% better or 20% better because that number feeds another decision, run a fixed split.&lt;/p&gt;

&lt;p&gt;A bandit is for &lt;strong&gt;earning while it learns&lt;/strong&gt;. It wants more conversions during the test and cares much less about how bad the weak arms are. Once a losing variant stops getting traffic you learn little more about it, which is fine, because you weren't going to ship it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the bandit moves traffic
&lt;/h2&gt;

&lt;p&gt;It uses Thompson sampling. For each variant the cloud keeps a Beta posterior over the conversion rate, Beta(1 + conversions, 1 + visitors − conversions) for a yes/no goal. It draws from all of them 20,000 times and counts how often each arm comes out on top. That share, P(best), becomes the arm's traffic weight.&lt;/p&gt;

&lt;p&gt;Left alone, that rule would overreact, so four limits hold it back:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Warm-up.&lt;/strong&gt; Weights stay equal until every arm has 100 visitors, because before that the posteriors are too wide to mean much.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Floors.&lt;/strong&gt; Control always keeps at least 10% of traffic, since every variant gets compared with it. Every other arm keeps at least 5% (less when there are many arms), so a variant with a bad first week can recover.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pace.&lt;/strong&gt; The cloud recomputes at most hourly and only when new data has arrived. It publishes new weights only when one moves by 2 percentage points or six hours have passed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sticky visitors.&lt;/strong&gt; New weights affect new visitors only; someone who saw variant B last week keeps seeing B.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What happens on a small site
&lt;/h2&gt;

&lt;p&gt;With a few hundred visitors a week, the warm-up alone takes a while and the posteriors stay wide long after it. The bandit will still shift traffic, but slowly and with some wobble.&lt;/p&gt;

&lt;p&gt;You can still use a bandit on a small site, but give it a fast goal. A bandit only learns from conversions it has already seen, and a goal with a 30-day window gives it almost nothing to work with in the first month. We recommend bandits for goals with a window of 7 days or less, and autopilot requires it.&lt;/p&gt;

&lt;p&gt;Also, don't read the traffic split as a verdict. If variant C has 60% of traffic, that only means the bandit currently thinks C is most likely best. The results table still reports P(beat control), the interval and the state, computed the same way as for a fixed split, and that's where you make the call.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick guide
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You want to&lt;/th&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Know how big the effect is, for every variant&lt;/td&gt;
&lt;td&gt;A/B/n test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Make a ship-or-don't call you'll defend later&lt;/td&gt;
&lt;td&gt;A/B/n test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Get more sign-ups during the test itself&lt;/td&gt;
&lt;td&gt;Bandit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep testing new AI challengers on one region, indefinitely&lt;/td&gt;
&lt;td&gt;Bandit, with autopilot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test something with a slow goal (churn, 30-day revenue)&lt;/td&gt;
&lt;td&gt;A/B/n test, and patience&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you're unsure, start with a fixed split on your most important page. Bandits pay off once you're running a steady stream of variants on the same region, which is what &lt;a href="https://evolveab.com/blog/what-autopilot-is-allowed-to-do" rel="noopener noreferrer"&gt;autopilot&lt;/a&gt; does.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://evolveab.com/blog/bandit-or-fixed-split" rel="noopener noreferrer"&gt;Evolve blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>abtesting</category>
      <category>statistics</category>
      <category>nextjs</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The anti-flicker tax: what hiding your page does to LCP</title>
      <dc:creator>EvolveAB Admin</dc:creator>
      <pubDate>Fri, 13 Nov 2026 17:25:09 +0000</pubDate>
      <link>https://dev.to/evolveab/the-anti-flicker-tax-what-hiding-your-page-does-to-lcp-10ge</link>
      <guid>https://dev.to/evolveab/the-anti-flicker-tax-what-hiding-your-page-does-to-lcp-10ge</guid>
      <description>&lt;p&gt;If you've run a test from a visual editor, you've probably seen it: the page loads with the old headline, and a beat later the new one snaps into place. That's flicker. Client-side testing tools all have to deal with it, because their script applies the variant after the browser has started painting.&lt;/p&gt;

&lt;p&gt;From inside the browser you can either show the original and swap it, so the visitor sees the flash, or hide the page until the script is done. The second option is the "anti-flicker snippet", and most tools turn it on by default.&lt;/p&gt;

&lt;h2&gt;
  
  
  How long the page stays hidden
&lt;/h2&gt;

&lt;p&gt;An anti-flicker snippet makes the page invisible, usually with &lt;code&gt;opacity: 0&lt;/code&gt; on the body or a class like Google Optimize's &lt;code&gt;async-hide&lt;/code&gt;. It reveals the page when the testing script finishes or a timeout fires, whichever comes first, so the timeout is your worst case. The defaults are generous:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google Optimize&lt;/strong&gt; shipped its snippet with a &lt;strong&gt;4,000 ms&lt;/strong&gt; default (&lt;a href="https://developers.google.com/optimize" rel="noopener noreferrer"&gt;Google's developer docs&lt;/a&gt;). Optimize shut down on September 30, 2023, but copies of that snippet are still sitting in plenty of &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tags.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webflow Optimize&lt;/strong&gt; also defaults to &lt;strong&gt;4,000 ms&lt;/strong&gt;. Enterprise plans can set anything from 0 to 30,000 ms, and Webflow's help page warns that lower values bring back flicker (&lt;a href="https://help.webflow.com/hc/en-us/articles/52616936868115-Anti-flicker-prevention-in-Optimize" rel="noopener noreferrer"&gt;Webflow help&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Optimizely recommends loading its snippet &lt;strong&gt;synchronously&lt;/strong&gt; in the head instead (&lt;a href="https://support.optimizely.com/hc/en-us/articles/4410289847053" rel="noopener noreferrer"&gt;Optimizely support&lt;/a&gt;), which blocks rendering until the script has downloaded and run.&lt;/p&gt;

&lt;p&gt;On fast wifi with a warm cache, the script usually wins and the page appears within a few hundred milliseconds. On a slow phone, your visitor waits for the timeout.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does to Core Web Vitals
&lt;/h2&gt;

&lt;p&gt;Largest Contentful Paint can't happen while the page is invisible, so LCP absorbs the whole wait. Vercel's guide on A/B testing and Core Web Vitals says the failsafe commonly sits at 4 seconds and LCP takes all of it (&lt;a href="https://vercel.com/kb/guide/ecommerce-ab-testing-core-web-vitals" rel="noopener noreferrer"&gt;Vercel KB&lt;/a&gt;). Google rates LCP as good at 2.5 seconds or less, measured at the 75th percentile (&lt;a href="https://web.dev/articles/vitals" rel="noopener noreferrer"&gt;web.dev&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Published measurements are rare. DebugBear tested one site and recorded an LCP of about 6.0 seconds with body hiding and about 2.7 seconds with the hiding overridden (&lt;a href="https://www.debugbear.com/blog/ab-testing-anti-flicker-body-hiding" rel="noopener noreferrer"&gt;DebugBear&lt;/a&gt;). That's one site, and your numbers will differ, but they'll move in the same direction.&lt;/p&gt;

&lt;p&gt;The same Vercel guide also covers layout shift. Without anti-flicker, swapping content in can push CLS past 0.1. With it, CLS can look healthy for the wrong reason, since the browser doesn't record shifts that happen while the page is hidden. A clean CLS score on a tested page might only mean nobody could see the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  The browser team's own advice
&lt;/h2&gt;

&lt;p&gt;Chrome's guidance on flicker-free client-side testing suggests &lt;code&gt;blocking="render"&lt;/code&gt; with a strict execution budget of under 100 ms, says not to combine it with anti-flicker snippets, and recommends testing on the server wherever you can (&lt;a href="https://developer.chrome.com/docs/modern-web-guidance/guides/performance/flicker-free-client-side-ab-testing" rel="noopener noreferrer"&gt;Chrome for Developers&lt;/a&gt;). The people who build the browser think the cleanest fix is to stop deciding in the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deciding before the first byte
&lt;/h2&gt;

&lt;p&gt;A Next.js server already renders the page, so it can render the right variant from the start. You can build that yourself in about 100 lines; our &lt;a href="https://evolveab.com/guides/nextjs-ab-testing" rel="noopener noreferrer"&gt;guide to A/B testing in the App Router&lt;/a&gt; shows how. evolveAB does the assignment in the Next.js proxy, which reads a signed config bundle from memory (no network call), sets a sticky cookie and rewrites the request to that variant's cached render. The HTML arrives with the variant already in it, so there's nothing to hide or swap and no testing script blocking the head.&lt;/p&gt;

&lt;p&gt;That has a cost too. Our code in the proxy takes 0.1 to 0.35 ms, but on Vercel any proxy adds roughly 20 ms to a first page view; one that does nothing measured 18 to 23 ms in our tests. Twenty milliseconds before the first byte is an easy trade against up to four seconds of blank page, as long as nobody pretends it's zero.&lt;/p&gt;

&lt;p&gt;We also measure each variant's page speed in visitors' browsers and compare it with control. Once there are enough page views to be sure, auto-rollback pauses a variant that's clearly slower: LCP 20% worse, CLS up by 0.05 or INP 50 ms slower. A variant shouldn't win on sign-ups by quietly making the page slower.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring it on your own site
&lt;/h2&gt;

&lt;p&gt;You don't need to switch tools to see what anti-flicker costs you. Run a throttled Lighthouse or WebPageTest trace on a tested page and look at the gap between first byte and first paint, then find the timeout in your snippet (it's usually a plain number in the code). If it says 4000 and your mobile LCP hovers around 2.5 seconds, you know where part of it goes.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://evolveab.com/blog/the-anti-flicker-tax" rel="noopener noreferrer"&gt;Evolve blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>webperf</category>
      <category>abtesting</category>
      <category>react</category>
    </item>
  </channel>
</rss>
