Live Preview allows content managers to see real-time updates to their content before publishing. It ensures a seamless content editing experience by enabling draft previews across multiple digital channels.
Note: Live Preview currently supports only web-based applications. Support for mobile applications will be available in the future.
Live Preview seamlessly connects your Contentstack entry editor with your website, allowing instant previews of content updates. The setup varies based on the rendering technique your website uses.
Additional Resource: You can also open Live Preview in a new browser tab for an iframe-free experience.
For websites using GraphQL APIs to fetch and display content dynamically.
In Client-side Rendering (CSR), content is fetched dynamically using JavaScript in the browser. The page structure loads first, and the content is rendered asynchronously, reducing server load.
It is best to use CSR with GraphQL for:
Best suited for Single Page Applications (SPAs) built with React, Vue.js, Angular, or other JavaScript frameworks.
To learn how to configure Live Preview for CSR with GraphQL, refer to the setup guide.
In Server-side Rendering (SSR), pages are pre-rendered on the server before being sent to the browser. This improves SEO, performance, and initial load speed, as search engines and users receive fully rendered content on the first request.
It is best to use SSR with GraphQL for:
Best suited for SEO-focused websites, Next.js applications, and performance-first projects.
To learn how to configure Live Preview for SSR with GraphQL, refer to the setup guide.
Gatsby is a React-based static site generator (SSG) that pre-builds pages for faster performance. Since Gatsby sites do not update content dynamically, Live Preview runs in Client-side Rendering (CSR) mode, allowing real-time content previews without rebuilding the site.
It is best to use Live Preview with Gatsby for:
Best suited for blogs, documentation, and marketing pages.
To learn how to configure Live Preview for Gatsby, follow the setup guide.
REST-Based Live Preview allows websites that use REST APIs to fetch and display content dynamically to see real-time content updates before publishing.
It is best to use CSR with REST for:
Best suited for REST API-driven SPAs and dynamic websites using React, Vue.js, or Angular.
To learn how to configure Live Preview for CSR with REST, refer to the setup guide.
In Server-side Rendering (SSR), pages are pre-rendered on the server before being sent to the client, improving SEO and load times. Live Preview ensures that real-time updates are reflected without delay.
It is best to use SSR with REST for:
Best suited for SEO-focused websites, Next.js/Nuxt.js apps, performance-first sites.
To learn how to configure Live Preview for SSR with REST, refer to the setup guide.
Static Site Generators (SSGs) generate HTML pages during the build process, which optimizes website performance and minimizes load times. Since SSG-based websites do not dynamically up date content, Live Preview operates in Client-side Rendering (CSR) mode, allowing content teams to see changes before deployment. This ensures accurate content validation without triggering a full rebuild.
It is best to use Live Preview with SSG for:
Best suited for blogs, documentation sites, and marketing landing pages.
To learn how to configure Live Preview for SSG, refer to the setup guide.
Live Preview is easy to implement and works across various tech stacks. Choose a setup that fits your needs and start previewing content instantly.