Skip to content
跨境独立站开店
Guides

Why do storefronts using Hydrogen perform so well?

The future of commerce is personalized, contextual, and dynamic. Hydrogen is a React-based framework for building custom, creative storefronts that leverage the Shopify platform and APIs.

Check Shopify registration offers in your regionSee current offer

Streaming Server-side Rendering

Imagine a product page packed with personalized content for the buyer: localized descriptions and pricing, a list of recommended products based on their purchase history, custom calls to action and promotional banners, and even assignment to several multivariate A/B tests.

React Server Components

Server Components allow developers to build applications that span both servers and clients, combining the rich interactivity of client-side applications with the improved performance of traditional server rendering.

Efficient data acquisition, colocation, and caching.

To provide fast server-side responses, you need fast and efficient first-party (Shopify) and third-party data access. When deployed with Oxygen (a distributed V8 worker runtime hosted by Shopify), Hydrogen server components query the Storefront API at localhost speeds. Store data is colocated and located in milliseconds. For third-party fetches, the runtime hits the standard Fetch API, enhanced with smart cache defaults and configurable caching strategies.

The best combination of dynamic services and edge delivery

Even with Hydrogen, you don't have to fetch all your data from the server. On the contrary, it's good practice to defer or lazyload less important content from the client. Lower-priority content can be loaded using the standard React pattern and browser APIs. For example, you can use IntersectionObserver to determine when to display content on the screen and load it as needed.

Related reading

View all
View offer
Shopify

Start free and explore current offers

Visit Shopify for trial duration, eligible plans and promotions available in your region.

Register free with ShopifyAffiliate disclosure