About the Rendering Context API

The Rendering Context API tells you where, and for whom, the page is rendering. Use it to skip code that needs a browser while the page renders on the server, such as reading window or localStorage, and to render a component's full content for search engine crawlers, such as reviews that site visitors load later.

With the Rendering Context API, you can:

  • Check whether code is running without a browser window, such as while the page renders on the server.
  • Check whether the page is rendering for a search engine crawler.

Use cases

SDK setup

@wix/site-service-rendering-context

To use the API, install the @wix/site-service-rendering-context package:

Copy

Import the package

Copy

Resolve the service

In a React component, resolve the service with the useService hook:

Copy

Last updated: 13 October 2026

Did this help?