Server-Side Rendering (SSR)

Server-side rendering (SSR) generates a page’s HTML on the server in response to a request. The browser can display that HTML before running all of the application’s JavaScript. Interactive components may still need hydration, which attaches their behaviour in the browser.

For a store, SSR can make product information available sooner than a fully client-rendered approach. It does not guarantee a faster page or higher conversion. Server response time, API calls, caching, images and browser-side JavaScript all affect the shopping experience. Measure real pages and customer journeys.

A Hydrogen storefront uses its chosen framework’s rendering capabilities; Next.js, React Router and Astro offer server-rendering options. Shopify’s Liquid themes also render HTML on the server. A headless storefront does not gain a performance advantage just by using SSR: the implementation needs to earn it.

SSR builds HTML when requested. Static generation builds pages ahead of time; caching can reuse a response. These approaches can be combined where the framework supports them.

Frequently asked questions

What is server-side rendering in ecommerce?

SSR generates HTML on the server in response to a page request. The browser can display content without first building the entire page with JavaScript. Interactive components may still need browser-side hydration.

Why does SSR matter for Shopify conversion rates?

SSR can help shoppers see content sooner than a fully client-rendered page, but it does not guarantee higher conversion. Measure server response time, Largest Contentful Paint, Interaction to Next Paint and the buying journey. Test business outcomes rather than attributing them to rendering alone.

Do Hydrogen and Next.js both support SSR?

Current Hydrogen uses the rendering capabilities of its chosen framework. Frameworks such as Next.js and React Router support SSR, and Astro supports server-rendered pages too. The hosting choice must support the app’s runtime. Shopify Liquid themes also render on the server.

Related terms: Shopify Hydrogen, Shopify Remix, Headless Commerce. For hands-on help, see Flux's headless Shopify team.

Shopify Plus development and AI search

We build Shopify Plus stores that customers and AI shopping agents can find, compare and buy from. 210+ stores since 2012.

Chosen by Shopify Plus brands worldwide.