TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Optimal UX – Server-side A/B testing that runs before page load

6 pointsby Dm_Linov3 months ago
Optimal UX runs experiments directly on the server side through a Cloudflare Worker, meaning variations are applied before the page even reaches the browser.<p>The core idea is to intercept and modify the HTML stream at the edge, which eliminates client-side overhead. For websites using Cloudflare, it&#x27;s just a matter of installing the Smart Agent. The same agent works seamlessly with React, Vue, and other frontend frameworks when client-side testing is needed.<p>One unexpected benefit that emerged during development was the ability to quickly apply HTML patches. This turned out to be super useful for SEO tweaks - you can update meta tags, headings, or content structure without deploying new code.<p>Tech stack: -Edge computing (Cloudflare Workers) - Streaming HTML parser - Framework-agnostic client library (~3KB gzipped)<p>Would love feedback from anyone doing A&#x2F;B testing at scale. This is my first time building something for edge computing and I learned a ton about HTML streaming and performance optimization.<p>I&#x27;m particularly curious: - Has anyone else encountered performance issues with client-side A&#x2F;B testing tools? - For those running tests on high-traffic sites, how do you handle the performance impact? - What&#x27;s your experience with edge computing for similar use cases?

1 comment

puzanov3 months ago
Do you support other edge providers other than CF?