X Rebuilt Its Entire Website. The First Post Now Loads in 2.7 Seconds.
On November 4, 2026, X explained how five engineers rebuilt its entire website in under six months. The first post on a profile now loads in 2.7 seconds on a slow connection, down from 23.9. Here is the new stack, the streaming SSR trick, and the three moves your team should steal.
Amir Ali Liaqat · Founder & CEO, DesignsToDeploy

On November 4, 2026, X Engineering published a post called Rebuilding the global town square from scratch. It explains how a team of fewer than five engineers rebuilt the entire X website in under six months, with AI coding agents doing much of the mechanical work. The headline number: on a slow connection, the old site took more than 22 seconds to show the first post on a profile. The new one does it in 2.7 seconds. The lab figures behind that claim, as reported from the engineering post, put the comparison at 23.9 seconds down to 2.7 seconds for a profile's first post, and 21.7 seconds down to 1.7 seconds for a single post. If you build websites for a living, this is the most useful engineering write-up of the month, because the stack is ours: React, streaming server rendering, and a Node.js server.
The old site: an empty shell, then megabytes of JavaScript
The old codebase, codenamed rweb, came from Twitter Lite in 2017. It was a client-side React app. The browser downloaded an empty HTML shell, then downloaded and ran several megabytes of JavaScript, then resolved the username to an account, then fetched the posts. Four serial round-trips before the first post appeared, and on a slow connection the visitor stared at a spinner the whole time. To satisfy search engines, two separate server-side rendering systems were bolted on: rweb SSR and Jetfuel SSR. That meant three independent services. Changing an SEO field or a 404 status code required edits in three codebases. Bots got fully rendered HTML while logged-out humans got the empty shell. The stack mixed Redux, Relay, Flow, and Webpack, and changes had become painful.
The new stack: Vite, Rolldown, Fastify, Node 26
The team considered a smaller fix, swapping the toolchain or adopting Next.js, and concluded a full rewrite was cleaner. The new build pipeline uses Vite and the Rust-based bundler Rolldown. Linting runs on Oxlint, and TypeScript type checking runs on the Rust compiler tsrs. On the server, Express was replaced by Fastify running on Node.js 26, with Platformatic Watt managing multiple worker threads in a single process. The UI layer is a new XDS component library built on Base UI and Tailwind CSS. The data layer stays Relay and GraphQL, which the old stack already used, because colocating data requirements with components makes preloading easy. Evan You, the creator of Vite, publicly celebrated on November 6 that the X web client now runs on Vite.
Streaming SSR, explained simply
The core idea is streaming server rendering with React Suspense. The server sends the page shell right away, then streams each part as its data arrives. Profiles and posts download no JavaScript before the first post shows, because the content is already embedded in the initial HTML payload. Route loaders start the GraphQL queries while the server renders, and the page carries each response once as JSON, so the browser replays it into an empty Relay store instead of fetching it again. One server now handles every visitor, and it tailors the response to who is asking. People get streamed pages. Search-engine crawlers are identified by verifying their real IP address at the edge, not the easily spoofed User-Agent header, and they receive a complete static HTML document with all client-side JavaScript stripped out. Link-preview bots skip body rendering entirely and receive only head tags and card images.
The numbers, and what they actually are
All of these figures are X's own lab measurements, from matched tests run on November 3 under simulated Slow 4G with 4x CPU throttling, not production Core Web Vitals or third-party benchmarks. A single post went from 21.7 seconds to 1.7 seconds, about 12.8 times faster. A profile page went from 23.9 seconds for the first post to 2.7 seconds, and the profile page itself loads in 3.0 seconds, about 8.2 times faster. Before the first post appears, the old version downloaded 3.0 to 3.6 MB of compressed JavaScript. The new version downloads 0 KB, because the content arrives in the HTML. The signed-in Home timeline improved less, from about 24.6 seconds to 14.1 seconds, because it still renders in the browser for now. Two smaller fixes show how much of the win was detail work: Rolldown's default code-splitting had produced 582 tiny chunks for the unauthenticated entry point, and a custom build plugin consolidated them into 10. An inline script that delays JavaScript injection until the CSS stylesheet finishes loading cut first paint on the unauthenticated post page from 7.2 seconds to 1.8 seconds. Since September the team merged more than 80 performance-focused commits, deleted roughly 36,000 lines of legacy code, and halved unauthenticated server instances per data center from 1,400 to 700.
“Same React. Different rendering. That is the whole trick.”
How five engineers shipped it
The team was fewer than five engineers, and the bulk of the mechanical work, porting legacy service logic, writing pages, generating tests, was delegated to AI agents. Humans focused on architecture, code review, and real-browser validation. Two safety nets kept the agents in check. First, the two legacy SSR services served as living reference implementations: a script impersonated Googlebot and hit both old and new endpoints at the same time, automatically comparing status codes, titles, and structured data, so engineers only had to watch the diff shrink to zero. Second, the repository enforces three layers of discipline: a root AGENTS.md file codifies coding standards, more than 20 high-frequency development actions are packaged as version-controlled Skills, and an Oxlint plugin named anti-slop blocks common AI-generated anti-patterns at pre-commit. In early September all crawler traffic was switched to the new service, and Jetfuel SSR and rweb SSR were shut down. Logged-out traffic on x.com already runs on the new service, and signed-in users are moving over one country at a time, so the team can switch a group back if something breaks.
Three moves for your team
First, measure on a slow connection. Test your site on simulated slow 4G with CPU throttling, not office Wi-Fi. X's lab test is what exposed the 23.9 seconds, and your slowest visitor is your real user. Second, stream. Send the shell first and stream the rest as data arrives. React Suspense and Next.js make this a pattern you can adopt, not a rewrite you have to fear. Content should arrive before JavaScript. Third, ship the small wins. Cut what loads before first paint, consolidate tiny chunks, and let the CSS finish before scripts compete for bandwidth. X cut JavaScript before first paint to zero. A small team with agents and guardrails shipped the whole rebuild in under six months, which says more about process than headcount.
Why this matters to your business
Speed is a feature, not polish. Every second a visitor waits on a spinner is a visitor who may never see your product, your pricing, or your contact form. The X rewrite is a reminder that performance work is mostly rendering work: where the HTML is built, what downloads before the first paint, and how many round-trips stand between a visitor and your content. It is also a reminder that stack decisions expire. The client-side app was the right call in 2017 and the wrong call in 2026, and the team that admitted it rebuilt the whole thing with fewer than five people. If your website is slow on a real phone, the fix is rarely a bigger server. It is usually a rendering decision, and it is usually cheaper than you think.
Sources: X Engineering, Rebuilding the global town square from scratch, November 4, 2026, by principal engineer Yagiz Nizipli, as summarized in This Week In React #305 (November 2026), The Verge (November 5, 2026), and multiple secondary summaries of the engineering post. Nizipli's public post puts the old app at more than 22 seconds for a profile's first post on a slow connection; the 23.9 second lab figure, the 21.7 to 1.7 second single-post comparison, the 0 KB JavaScript figure, and the server and code-deletion figures come from the engineering post as reported. All speed figures are X's own lab measurements under simulated Slow 4G with 4x CPU throttling, not production Core Web Vitals. Rollout status as of the article's publication: all logged-out x.com traffic and all crawler traffic run on the new service; the signed-in Home timeline still renders in the browser and migrates country by country. All claims observed November 12, 2026.
1 / 5Keep reading

CSS Grid vs Flexbox: The One Rule That Ends the Debate
Flexbox is one-dimensional, Grid is two-dimensional. The rule from the W3C spec editor who wrote both specifications, plus when each one wins, the nested pattern production sites actually use, and the code to prove it.
Read article
Tailwind CSS vs Bootstrap: Stop Picking Blind
Tailwind and Bootstrap both build modern UIs, but they think about CSS in opposite ways. Here is the real difference between utility-first and component-first styling, what changed in Tailwind v4 and the Bootstrap 6 alpha, and the decision rules we use to pick one for a project.
Read article
Static and Personal, on the Same Page: Next.js 16.4 and Cache Components
Next.js 16.4 makes Cache Components the recommended caching model for every Next.js app. One page can now mix cached and personal content, per component. Here is what 'use cache' changes, the three-step adoption plan, and why you should upgrade to 16.4.1 first.
Read article