Hello @mohamed.elshazly
When you say ātake too longā, do you mean a few seconds (for example 5 to 15 seconds), or are we talking tens of seconds or minutes?
A first thing to double check is whether youāre hitting Save or Publish. If your models use the Draft/Published system, saving changes to an already published record puts it in āUpdatedā, and the live site will keep showing the last published version until you publish again. This is expected behavior. The draft and updated versions are only returned if your preview requests include drafts (DatoCMS docs: https://www.datocms.com/docs/general-concepts/draft-published and API headers (environments, drafts, strict mode, cache tags, content link) ).
On the Web Previews plugin, switching from a custom preview integration to the plugin wonāt make content propagate faster by itself. The pluginās job is to generate preview URLs and optionally reload the iframe after a record update. The actual freshness depends entirely on how your SvelteKit site fetches data and what caching exists in front of it. If you want the plugin to force a reload after each save, your preview-links endpoint needs to return the reloadPreviewOnRecordUpdate option (plugin docs: Web Previews - Plugins ā DatoCMS ).
Also, for truly āliveā previews without refreshing, your frontend needs to be wired to the Real-time Updates API (Server-Sent Events). In SvelteKit, the recommended approach is @datocms/svelteās querySubscription store (docs: https://www.datocms.com/docs/svelte/real-time-updates and Real-Time Updates API Overview ā DatoCMS ). With real time updates, updates are usually quick but itās normal to see a few seconds of latency. If youāre expecting immediate updates at 0 to 1 second, thatās generally not realistic.
The other common cause is that the site is statically built. If youāre using SvelteKit prerendering or adapter-static, both āliveā and āpreviewā routes will keep serving the build output until a new build happens, so the delay you see is your build time plus any CDN caching. In that setup, preview can still be instant if you implement preview as SSR (no prerender) and fetch draft content on request, but the public live site will still need a redeploy to reflect new publishes.
If you can share how your site is deployed (Vercel, Netlify, etc), whether itās SSR or prerendered/static, and roughly how long the delay is in seconds, I can point you to the most likely culprit. If you prefer, you can email support@datocms.com with a link we can test plus the relevant SvelteKit load code where you fetch from DatoCMS (including any cache headers or fetch caching options), and weāll take a closer look.
If it helps to compare against a known-good setup, our SvelteKit starter includes draft mode, Web Previews plugin support, and real time updates: https://www.datocms.com/marketplace/starters/sveltekit-starter-kit and https://github.com/datocms/sveltekit-starter-kit. You can also browse other starters here: Project starters - Free demo projects - Marketplace .