Add ordering to SvelteKit
Delitero is launching soon. Join the waitlist and we will email you when it opens.
In SvelteKit, render the container div in your page markup and load the script from svelte:head:
<svelte:head> <script src="https://order.delitero.com/embed.js" defer></script> </svelte:head> <div data-delitero-restaurant="rst_9f2a64d1-7c3e-4b8a-9d21-8e5f0a6c4b7e" style="height: 640px; max-width: 480px"> <a href="https://order.delitero.com/r/rst_9f2a64d1-7c3e-4b8a-9d21-8e5f0a6c4b7e">Order online</a> </div>
On client-side navigation the script is already loaded, so a container that appears later needs a manual mount. Mounting is idempotent, so calling it defensively is fine:
import { onMount } from 'svelte'
onMount(() => {
const el = document.querySelector('[data-delitero-restaurant]')
if (el) window.Delitero?.mount(el)
})Search engines and AI assistants
To keep a text copy always current, fetch https://order.delitero.com/r/your-restaurant-id/embed.html at build or request time and render it in place of the snippet.
Works everywhere, or the link does
Whatever your website can or cannot embed, the hosted ordering page always works as a plain link. Sizing, isolation guarantees, and single-page-app notes are on the Add ordering to your site overview.
Did not find what you needed? Search the guides, or see common problems and what to do.

